FreeNOS
Data Structures | Typedefs | Functions
socket.h File Reference
#include <Macros.h>
#include "types.h"

Go to the source code of this file.

Data Structures

struct  sockaddr
 Defines a socket address and port pair. More...
 
struct  iovec
 Input/Output vector for multi-packet operations. More...
 
struct  msghdr
 Describes one or more datagrams. More...
 

Typedefs

typedef Size socklen_t
 

Functions

C int connect (int sockfd, struct sockaddr *addr, socklen_t addrlen)
 Connect a socket to an address/port. More...
 
C int recvfrom (int sockfd, void *buf, size_t len, int flags, struct sockaddr *addr, socklen_t addrlen)
 Receive a single datagram from a socket. More...
 
C int sendto (int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *addr, socklen_t addrlen)
 Send a single datagram to a remote host. More...
 
C int sendmsg (int sockfd, const struct msghdr *msg, int flags)
 Send multiple datagrams to a remote host. More...