Main Page
Modules
Data Structures
Files
Related Pages
Socket Functions
Detailed Description
The <
sofia-sip/su.h
> contains the portable socket functions.
The <
sofia-sip/su.h
> contains following functions, macros, and types:
su_init()
: initializes sockets
su_deinit()
: deinitializes sockets
su_socket()
: creates a socket
su_close()
: closes a socket
su_ioctl()
: ioctl to a socket
su_setreuseaddr()
: set/reset reusing the addresses/ports for a socket
su_setblocking()
: enables/disables blocking
su_is_blocking()
: checks if the previous call failed because it would have blocked
su_errno()
: the latest socket error
su_perror()
: prints the latest socket error message to stderr
su_strerror()
: returns the given socket error message
su_perror2()
: prints the given socket error message to stderr
su_soerror()
: returns the error code associated with the socket
su_getmsgsize()
: return the number of bytes that can be recv()ed from a socket
su_getlocalip()
: return an IP address belonging to the local host
su_send(), su_sendto(): type-compatible send()
su_recv(), su_recvfrom(): type-compatible recv()
su_vsend()
: scatter-gather send
su_vrecv()
: scatter-gather receive
su_iovec_t
: structure holding scatter-gather IO vector
Files
file
su.h
Socket and network address interface.
file
su_addrinfo.h
Network address and service translation.
file
su_localinfo.h
Interface for obtaining local addresses.
Sofia-SIP 1.12.8 - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.