25 #ifndef _SERIAL_PORT_HPP_ 26 #define _SERIAL_PORT_HPP_ 28 #include "Connection.hpp" 51 return (handle == INVALID_HANDLE_VALUE);
53 return IS_INVALID_SOCKET(fd);
58 void prepareSelectFds(fd_set&, fd_set&,
int&);
62 bool isTcpConnection(
void)
const {
return false;}
64 bool isAsciiConnection(
void)
const {
return true;}
68 int readNonblocking(
char *buf,
int count);
69 int writeNonblocking(
const char *buf,
int count);
70 void handleSelectFds(
const fd_set&,
const fd_set&) {}
74 struct termios termios_original;
Base class for telescope server classes.
SerialPort(Server &server, const char *serial_device)
Class constructor.
virtual bool isClosed(void) const
Returns true if the connection is closed.
TCP/IP connection to a client.
Serial interface connection.