Logo Search packages:      
Sourcecode: sofia-sip version File versions  Download package

su.h File Reference


Detailed Description

Defined when <sofia-sip/su.h> has been included. Socket and network address interface

Author:
Pekka Pessi <Pekka.Pessi@nokia.com>
Date:
Created: Thu Mar 18 19:40:51 1999 pessi

Definition in file su.h.

#include <sofia-sip/su_config.h>
#include <sofia-sip/su_types.h>
#include <sofia-sip/su_errno.h>
#include <stdio.h>
#include <limits.h>
#include <sofia-sip/su_addrinfo.h>

Go to the source code of this file.

Classes

struct  sockaddr_storage
union  su_sockaddr_u

Defines

#define _SS_ALIGNSIZE   (sizeof(int64_t))
#define _SS_MAXSIZE   128
#define _SS_PAD1SIZE   (_SS_ALIGNSIZE - sizeof(u_char) * 2)
#define _SS_PAD2SIZE
#define IPPROTO_SCTP   (132)
#define SU_ADDR(su)
#define SU_ADDRLEN(su)
#define SU_ADDRSIZE   (48)
#define SU_CANONIZE_SOCKADDR(su)   ((void)0)
#define SU_FAILURE   su_failure
#define SU_HAS_INADDR_ANY(su)
#define SU_IN6_IS_ADDR_V4COMPAT(a)
#define SU_IN6_IS_ADDR_V4MAPPED(a)
#define su_len   su_array[0]
#define SU_MAXHOST   (1025)
#define SU_MAXSERV   (25)
#define su_port   su_sin.sin_port
#define su_recv(s, b, l, f)   recv((s),(b),(l),(f))
#define su_recvfrom(s, b, l, f, a, L)   recvfrom((s),(b),(l),(f),(void *)(a),(L))
#define su_scope_id   su_array32[6]
#define su_send(s, b, l, f)   send((s),(b),(l),(f))
#define su_sendto(s, b, l, f, a, L)   sendto((s),(b),(l),(f),(void const*)(a),(L))
#define SU_SERVSIZE   (16)
#define SU_SOCKADDR_INADDR_ANY(su)   SU_HAS_INADDR_ANY(su)
#define su_sockaddr_size   SU_SOCKADDR_SIZE
#define SU_SOCKADDR_SIZE(su)
#define SU_SUCCESS   su_success

Typedefs

typedef union su_sockaddr_u su_sockaddr_t

Functions

SOFIAPUBFUN void su_canonize_sockaddr (su_sockaddr_t *su)
SOFIAPUBFUN int su_close (su_socket_t s)
SOFIAPUBFUN int su_cmp_sockaddr (su_sockaddr_t const *a, su_sockaddr_t const *b)
SOFIAPUBFUN void su_deinit (void)
SOFIAPUBFUN int su_getlocalip (su_sockaddr_t *sin)
SOFIAPUBFUN issize_t su_getmsgsize (su_socket_t s)
SOFIAPUBFUN int su_getsocktype (su_socket_t s)
SOFIAPUBFUN int su_init (void)
SOFIAPUBFUN int su_ioctl (su_socket_t s, int request,...)
SOFIAPUBFUN int su_is_blocking (int errcode)
SOFIAPUBFUN int su_match_sockaddr (su_sockaddr_t const *a, su_sockaddr_t const *b)
SOFIAPUBFUN int su_setblocking (su_socket_t s, int blocking)
SOFIAPUBFUN int su_setreuseaddr (su_socket_t s, int reuse)
SOFIAPUBFUN su_socket_t su_socket (int af, int sock, int proto)
SOFIAPUBFUN int su_soerror (su_socket_t s)
SOFIAPUBFUN issize_t su_vrecv (su_socket_t, su_iovec_t iov[], isize_t len, int flags, su_sockaddr_t *su, socklen_t *sulen)
SOFIAPUBFUN issize_t su_vsend (su_socket_t, su_iovec_t const iov[], isize_t len, int flags, su_sockaddr_t const *su, socklen_t sulen)


Generated by  Doxygen 1.6.0   Back to index