NCBI C++ ToolKit
|
Go to the source code of this file.
Go to the SVN repository for this file.
Macros | |
#define | TDS_ADDITIONAL_SPACE 16 |
#define | TDS_NOSIGNAL 0L |
#define | sock_errno errno |
#define | set_sock_errno(err) do { errno = (err); } while(0) |
#define | sock_strerror(n) strerror(n) |
#define | sock_strerror_free(s) do {} while(0) |
#define | TDSSOCK_EINTR EINTR |
#define | TDSSOCK_EINPROGRESS EINPROGRESS |
#define | TDSSOCK_ETIMEDOUT ETIMEDOUT |
#define | TDSSOCK_WOULDBLOCK(e) ((e)==EAGAIN) |
#define | TDSSOCK_ECONNRESET ECONNRESET |
#define | INITSOCKET() 0 |
#define | DONESOCKET() do { } while(0) |
#define | READSOCKET(s, b, l) read((s), (b), (l)) |
#define | WRITESOCKET(s, b, l) write((s), (b), (l)) |
#define | CLOSESOCKET(s) close((s)) |
#define | IOCTLSOCKET(s, b, l) ioctl((s), (b), (l)) |
#define | SOCKLEN_T socklen_t |
#define | INVALID_SOCKET -1 |
#define | TDS_IS_SOCKET_INVALID(s) ((s) < 0) |
#define | tds_accept accept |
#define | tds_getpeername getpeername |
#define | tds_getsockopt getsockopt |
#define | tds_getsockname getsockname |
#define | tds_recvfrom recvfrom |
#define | TDS_SDIR_SEPARATOR "/" |
#define | PRId64 TDS_I64_PREFIX "d" |
#define | PRIu64 TDS_I64_PREFIX "u" |
#define | PRIx64 TDS_I64_PREFIX "x" |
Typedefs | |
typedef int | TDS_SYS_SOCKET |
#define CLOSESOCKET | ( | s | ) | close((s)) |
Definition at line 188 of file sysdep_private.h.
#define DONESOCKET | ( | ) | do { } while(0) |
Definition at line 168 of file sysdep_private.h.
#define INITSOCKET | ( | ) | 0 |
Definition at line 164 of file sysdep_private.h.
#define INVALID_SOCKET -1 |
Definition at line 201 of file sysdep_private.h.
Definition at line 192 of file sysdep_private.h.
#define PRId64 TDS_I64_PREFIX "d" |
Definition at line 261 of file sysdep_private.h.
#define PRIu64 TDS_I64_PREFIX "u" |
Definition at line 264 of file sysdep_private.h.
#define PRIx64 TDS_I64_PREFIX "x" |
Definition at line 267 of file sysdep_private.h.
#define set_sock_errno | ( | err | ) | do { errno = (err); } while(0) |
Definition at line 131 of file sysdep_private.h.
#define sock_errno errno |
Definition at line 127 of file sysdep_private.h.
Definition at line 135 of file sysdep_private.h.
#define sock_strerror_free | ( | s | ) | do {} while(0) |
Definition at line 136 of file sysdep_private.h.
#define SOCKLEN_T socklen_t |
Definition at line 196 of file sysdep_private.h.
#define tds_accept accept |
Definition at line 208 of file sysdep_private.h.
#define TDS_ADDITIONAL_SPACE 16 |
Definition at line 27 of file sysdep_private.h.
#define tds_getpeername getpeername |
Definition at line 209 of file sysdep_private.h.
#define tds_getsockname getsockname |
Definition at line 211 of file sysdep_private.h.
#define tds_getsockopt getsockopt |
Definition at line 210 of file sysdep_private.h.
#define TDS_IS_SOCKET_INVALID | ( | s | ) | ((s) < 0) |
Definition at line 202 of file sysdep_private.h.
#define TDS_NOSIGNAL 0L |
Definition at line 32 of file sysdep_private.h.
#define tds_recvfrom recvfrom |
Definition at line 212 of file sysdep_private.h.
#define TDS_SDIR_SEPARATOR "/" |
Definition at line 253 of file sysdep_private.h.
#define TDSSOCK_ECONNRESET ECONNRESET |
Definition at line 160 of file sysdep_private.h.
#define TDSSOCK_EINPROGRESS EINPROGRESS |
Definition at line 144 of file sysdep_private.h.
#define TDSSOCK_EINTR EINTR |
Definition at line 140 of file sysdep_private.h.
#define TDSSOCK_ETIMEDOUT ETIMEDOUT |
Definition at line 148 of file sysdep_private.h.
#define TDSSOCK_WOULDBLOCK | ( | e | ) | ((e)==EAGAIN) |
Definition at line 155 of file sysdep_private.h.
Definition at line 183 of file sysdep_private.h.
typedef int TDS_SYS_SOCKET |
Definition at line 200 of file sysdep_private.h.