sockets.h File Reference

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 Documentation

#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_sockerrnonb ( err   )     (err == EINPROGRESS)

Definition at line 40 of file sockets.h.

 
#define ano_sockgeterr (  )     errno

Definition at line 36 of file sockets.h.

Referenced by conn(), fatal_sockerror(), and sgets().

#define ano_sockread ( fd,
buf,
len   )     read(fd, buf, len)

Definition at line 33 of file sockets.h.

Referenced by smtp_read().

#define ano_sockseterr ( err   )     errno = err

Definition at line 37 of file sockets.h.

Referenced by conn().

#define ano_socksetnonb ( fd   )     fcntl(fd, F_SETFL, O_NONBLOCK)

Definition at line 39 of file sockets.h.

#define ano_sockstrerror ( err   )     strerror(err)

Definition at line 38 of file sockets.h.

Referenced by fatal_sockerror().

#define ano_sockwrite ( fd,
buf,
len   )     write(fd, buf, len)

Definition at line 34 of file sockets.h.

Referenced by smtp_send().

#define SOCKERR_EBADF   EBADF

Definition at line 41 of file sockets.h.

#define SOCKERR_EINPROGRESS   EINPROGRESS

Definition at line 44 of file sockets.h.

#define SOCKERR_EINTR   EINTR

Definition at line 42 of file sockets.h.

#define SOCKERR_EINVAL   EINVAL

Definition at line 43 of file sockets.h.

Referenced by conn().


Typedef Documentation

typedef int ano_socket_t

Definition at line 32 of file sockets.h.


Generated on Sun Dec 30 09:26:55 2007 for Anope by  doxygen 1.5.1-20070107