Go to the source code of this file.
Defines | |
| #define | ano_sockclose(fd) close(fd) |
| #define | ano_sockerrnonb(err) (err == EINPROGRESS) |
| #define | ano_sockgeterr() errno |
| #define | ano_sockread(fd, buf, len) read(fd, buf, len) |
| #define | ano_sockseterr(err) errno = err |
| #define | ano_socksetnonb(fd) fcntl(fd, F_SETFL, O_NONBLOCK) |
| #define | ano_sockstrerror(err) strerror(err) |
| #define | ano_sockwrite(fd, buf, len) write(fd, buf, len) |
| #define | SOCKERR_EBADF EBADF |
| #define | SOCKERR_EINPROGRESS EINPROGRESS |
| #define | SOCKERR_EINTR EINTR |
| #define | SOCKERR_EINVAL EINVAL |
Typedefs | |
| typedef int | ano_socket_t |
| #define ano_sockclose | ( | fd | ) | close(fd) |
Definition at line 35 of file sockets.h.
Referenced by conn(), disconn(), smtp_connect(), smtp_disconnect(), smtp_read(), and smtp_send().
| #define ano_sockgeterr | ( | ) | errno |
| #define ano_sockread | ( | fd, | |||
| buf, | |||||
| len | ) | read(fd, buf, len) |
| #define ano_sockseterr | ( | err | ) | errno = err |
| #define ano_socksetnonb | ( | fd | ) | fcntl(fd, F_SETFL, O_NONBLOCK) |
| #define ano_sockstrerror | ( | err | ) | strerror(err) |
| #define ano_sockwrite | ( | fd, | |||
| buf, | |||||
| len | ) | write(fd, buf, len) |
| typedef int ano_socket_t |
1.5.1-20070107