Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/classSerialPort.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 07:24:50 2014 Кодировка: Поисковые слова: 47 tuc |
Stellarium 0.12.3
|
Serial interface connection. More...
#include <SerialPort.hpp>
Public Member Functions | |
SerialPort (Server &server, const char *serial_device) | |
Class constructor. More... | |
virtual bool | isClosed (void) const |
Returns true if the connection is closed. More... | |
Public Member Functions inherited from Connection | |
Connection (Server &server, SOCKET fd) | |
long long int | getServerMinusClientTime (void) const |
Public Member Functions inherited from Socket | |
void | hangup () |
Protected Member Functions | |
void | prepareSelectFds (fd_set &, fd_set &, int &) |
Protected Member Functions inherited from Connection | |
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... | |
Protected Member Functions inherited from Socket | |
Socket (Server &server, SOCKET fd) | |
int | readNonblocking (void *buf, int count) |
int | writeNonblocking (const void *buf, int count) |
Additional Inherited Members | |
Protected Attributes inherited from Connection | |
char | read_buff [120] |
char * | read_buff_end |
char | write_buff [120] |
char * | write_buff_end |
Serial interface connection.
Definition at line 37 of file SerialPort.hpp.
SerialPort::SerialPort | ( | Server & | server, |
const char * | serial_device | ||
) |
Class constructor.
serial_device | A string containing the name of a serial port. On UNIX systems, this should be something like "/dev/ttyS0". On Microsoft Windows systems, this should be something like "COM1:". |
|
inlinevirtual |
Returns true if the connection is closed.
This method has different platform-dependent implementations.
Reimplemented from Socket.
Definition at line 48 of file SerialPort.hpp.