Different OS'es need different header files included, and some OS'es miss certain functions or macro's we need. In this file, we try to take away most of these differences.
X-1.12 Camiel Vanderhoeven 26-MAR-2008 Use config.h information.
X-1.11 Camiel Vanderhoeven 14-MAR-2008 Formatting.
X-1.10 Alex 20-FEB-2008 GNU compiler support on Windows.
X-1.9 Camiel Vanderhoeven 04-JAN-2008 Comments.
X-1.8 Fang Zhe 04-JAN-2008 Include sys/socket.h on Apple OS X.
X-1.7 Camiel Vanderhoeven 02-JAN-2008 Comments.
X-1.6 Brian Wheeler 1-DEC-2007 Corrected an unsigned/signed issue in inet_aton.
X-1.5 Camiel Vanderhoeven 15-NOV-2007 Replace winsock.h by winsock2.h.
X-1.4 Camiel Vanderhoeven 15-NOV-2007 Added some includes for Linux.
X-1.3 Camiel Vanderhoeven 14-NOV-2007 Added inet_aton.
X-1.2 Camiel Vanderhoeven 30-MAR-2007 Added old changelog comments.
X-1.1 Camiel Vanderhoeven 28-FEB-2007 File created. Code was previously found in Serial.cpp and Serial.h
Definition in file telnet.h.
#include <winsock2.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
Go to the source code of this file.
Defines | |
| #define | INCLUDED_TELNET_H |
| #define | INVALID_SOCKET - 1 |
| #define | IAC 255 |
| #define | DONT 254 |
| #define | DO 253 |
| #define | WONT 252 |
| #define | WILL 251 |
| #define | SB 250 |
| #define | GA 249 |
| #define | EL 248 |
| #define | EC 247 |
| #define | AYT 246 |
| #define | AO 245 |
| #define | IP 244 |
| #define | BREAK 243 |
| #define | DM 242 |
| #define | NOP 241 |
| #define | SE 240 |
| #define | EOR 239 |
| #define | ABORT 238 |
| #define | SUSP 237 |
| #define | xEOF 236 |
| #define | SYNCH 242 |
| #define | TELOPT_ECHO 1 |
| #define | TELOPT_SGA 3 |
| #define | TELOPT_NAWS 31 |
| #define | TELOPT_LFLOW 33 |
Typedefs | |
| typedef size_t | ssize_t |
| typedef int | socklen_t |
Functions | |
| int | inet_aton (const char *name, struct in_addr *addr) |
| #define AYT 246 |
| #define BREAK 243 |
| #define DO 253 |
| #define IAC 255 |
Definition at line 139 of file telnet.h.
Referenced by CSerial::execute(), and CSerial::WaitForConnection().
| #define INVALID_SOCKET - 1 |
Definition at line 134 of file telnet.h.
Referenced by CSerial::init(), lockstep_init(), and CSerial::WaitForConnection().
| #define NOP 241 |
| #define SB 250 |
| #define SE 240 |
| #define TELOPT_ECHO 1 |
| #define TELOPT_LFLOW 33 |
| #define TELOPT_NAWS 31 |
| #define TELOPT_SGA 3 |
| #define WILL 251 |
Definition at line 143 of file telnet.h.
Referenced by CSerial::execute(), and CSerial::WaitForConnection().
| int inet_aton | ( | const char * | name, | |
| struct in_addr * | addr | |||
| ) | [inline] |