Back to index

openldap  2.4.31
Defines | Functions
socket.h File Reference

Go to the source code of this file.

Defines

#define INADDR_LOOPBACK   (0x7f000001UL)
#define MAXHOSTNAMELEN   64
#define sock_errno()   errno
#define sock_errstr(e)   STRERROR(e)
#define sock_errset(e)   ((void) (errno = (e)))
#define tcp_read(s, buf, len)   read( s, buf, len )
#define tcp_write(s, buf, len)   write( s, buf, len )
#define tcp_close(s)   close( s )
#define ioctl_t   int
#define AC_SOCKET_INVALID   (-1)
#define AC_SOCKET_ERROR   (-1)
#define inet_aton   ldap_pvt_inet_aton
#define AC_HTONL(l)   htonl( l )
#define AC_NTOHL(l)   ntohl( l )
#define AC_HTONS(s)   htons( s )
#define AC_NTOHS(s)   ntohs( s )
#define INET_ADDRSTRLEN   16
#define INET6_ADDRSTRLEN   46
#define LUTIL_GETPEEREID(s, uid, gid, bv)   lutil_getpeereid( s, uid, gid )
#define NI_MAXHOST   256

Functions

 LDAP_F (int) ldap_pvt_inet_aton LDAP_P((const char *
 LDAP_LUTIL_F (int) lutil_getpeereid(int s

Define Documentation

#define AC_HTONL (   l)    htonl( l )

Definition at line 183 of file socket.h.

#define AC_HTONS (   s)    htons( s )

Definition at line 188 of file socket.h.

#define AC_NTOHL (   l)    ntohl( l )

Definition at line 184 of file socket.h.

#define AC_NTOHS (   s)    ntohs( s )

Definition at line 189 of file socket.h.

#define AC_SOCKET_ERROR   (-1)

Definition at line 166 of file socket.h.

#define AC_SOCKET_INVALID   (-1)

Definition at line 163 of file socket.h.

#define INADDR_LOOPBACK   (0x7f000001UL)

Definition at line 74 of file socket.h.

#define INET6_ADDRSTRLEN   46

Definition at line 204 of file socket.h.

#define INET_ADDRSTRLEN   16

Definition at line 201 of file socket.h.

Definition at line 170 of file socket.h.

#define ioctl_t   int

Definition at line 159 of file socket.h.

#define LUTIL_GETPEEREID (   s,
  uid,
  gid,
  bv 
)    lutil_getpeereid( s, uid, gid )

Definition at line 233 of file socket.h.

#define MAXHOSTNAMELEN   64

Definition at line 78 of file socket.h.

#define NI_MAXHOST   256

Definition at line 238 of file socket.h.

#define sock_errno ( )    errno

Definition at line 83 of file socket.h.

#define sock_errset (   e)    ((void) (errno = (e)))

Definition at line 85 of file socket.h.

#define sock_errstr (   e)    STRERROR(e)

Definition at line 84 of file socket.h.

#define tcp_close (   s)    close( s )

Definition at line 145 of file socket.h.

#define tcp_read (   s,
  buf,
  len 
)    read( s, buf, len )

Definition at line 139 of file socket.h.

#define tcp_write (   s,
  buf,
  len 
)    write( s, buf, len )

Definition at line 140 of file socket.h.


Function Documentation

LDAP_F ( int  ) const