25 #ifndef _CONNECTION_HPP_ 26 #define _CONNECTION_HPP_ 35 long long int getServerMinusClientTime(
void)
const 37 return server_minus_client_time;
45 void prepareSelectFds(fd_set &read_fds, fd_set &write_fds,
int &fd_max);
49 virtual bool isTcpConnection(
void)
const {
return true;}
51 virtual bool isAsciiConnection(
void)
const {
return false;}
52 void handleSelectFds(
const fd_set &read_fds,
const fd_set &write_fds);
57 virtual void dataReceived(
const char *&p,
const char *read_buff_end);
61 void sendPosition(
unsigned int ra_int,
int dec_int,
int status);
70 long long int server_minus_client_time;
73 #endif //_CONNECTION_HPP_
void performWriting(void)
Sends the contents of the write buffer over a TCP/IP connection.
Base class for telescope server classes.
void performReading(void)
Receives data from a TCP/IP connection and stores it in the read buffer.
TCP/IP connection to a client.