libsocket
Functions
libinetsocket.h File Reference

Contains all functions available in the C libsocket. More...

Go to the source code of this file.

Functions

int create_inet_stream_socket (const char *host, const char *service, char proto_osi3, int flags)
 Create and connect a new TCP/IP socket. More...
 
int create_inet_dgram_socket (char proto_osi3, int flags)
 Creates a new UDP/IP socket. More...
 
ssize_t sendto_inet_dgram_socket (int sfd, const void *buf, size_t size, const char *host, const char *service, int sendto_flags)
 This function is the equivalent to sendto(2) More...
 
ssize_t recvfrom_inet_dgram_socket (int sfd, void *buffer, size_t size, char *src_host, size_t src_host_len, char *src_service, size_t src_service_len, int recvfrom_flags, int numeric)
 Receive data from a UDP/IP socket. More...
 
int connect_inet_dgram_socket (int sfd, const char *host, const char *service)
 Connect a UDP socket. More...
 
int destroy_inet_socket (int sfd)
 Close a socket. More...
 
int shutdown_inet_stream_socket (int sfd, int method)
 Perform a shutdown(2) call on a socket. More...
 
int create_inet_server_socket (const char *bind_addr, const char *bind_port, char proto_osi4, char proto_osi3, int flags)
 Create a TCP or UDP server socket. More...
 
int accept_inet_stream_socket (int sfd, char *src_host, size_t src_host_len, char *src_service, size_t src_service_len, int flags, int accept_flags)
 Accept a connection attempt on a server socket. More...
 
int get_address_family (const char *hostname)
 Look up which address families a host supports. More...
 
int create_multicast_socket (const char *group, const char *port, const char *local)
 Create a datagram socket and join to the multicast group address. More...
 

Detailed Description

Contains all functions available in the C libsocket.

Definition in file libinetsocket.h.