Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/classConnection.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 07:24:42 2014 Кодировка: |
![]() |
Stellarium 0.12.3
|
TCP/IP connection to a client. More...
#include <Connection.hpp>
Public Member Functions | |
Connection (Server &server, SOCKET fd) | |
long long int | getServerMinusClientTime (void) const |
![]() | |
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) |
![]() | |
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 |
![]() | |
Server & | server |
SOCKET | fd |
TCP/IP connection to a client.
Definition at line 31 of file Connection.hpp.
|
protected |
Receives data from a TCP/IP connection and stores it in the read buffer.
|
protected |
Sends the contents of the write buffer over a TCP/IP connection.