Stellarium  0.90.0
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
Connection Class Reference

TCP/IP connection to a client. More...

#include <Connection.hpp>

+ Inheritance diagram for Connection:
+ Collaboration diagram for Connection:

Public Member Functions

 Connection (Server &server, SOCKET fd)
 
long long int getServerMinusClientTime (void) const
 
- Public Member Functions inherited from Socket
void hangup ()
 
virtual bool isClosed () const
 

Protected Member Functions

void performReading (void)
 Receives data from a TCP/IP connection and stores it in the read buffer. More...
 
void performWriting (void)
 Sends the contents of the write buffer over a TCP/IP connection. More...
 
void prepareSelectFds (fd_set &read_fds, fd_set &write_fds, int &fd_max)
 
- Protected Member Functions inherited from Socket
 Socket (Server &server, SOCKET fd)
 
int readNonblocking (void *buf, int count)
 
int writeNonblocking (const void *buf, int count)
 

Protected Attributes

char read_buff [120]
 
char * read_buff_end
 
char write_buff [120]
 
char * write_buff_end
 
- Protected Attributes inherited from Socket
Serverserver
 
SOCKET fd
 

Detailed Description

TCP/IP connection to a client.

Definition at line 31 of file Connection.hpp.

Member Function Documentation

void Connection::performReading ( void  )
protected

Receives data from a TCP/IP connection and stores it in the read buffer.

void Connection::performWriting ( void  )
protected

Sends the contents of the write buffer over a TCP/IP connection.


The documentation for this class was generated from the following file: