Go to the documentation of this file.
18 #ifndef __LIBPOSIX_SYS_SOCKET_H
19 #define __LIBPOSIX_SYS_SOCKET_H
89 extern C int recvfrom(
int sockfd,
void *buf,
size_t len,
int flags,
104 extern C int sendto(
int sockfd,
const void *buf,
size_t len,
int flags,
Defines a socket address and port pair.
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.
#define C
Used to define external C functions.
Describes one or more datagrams.
unsigned short u16
Unsigned 16-bit number.
unsigned int u32
Unsigned 32-bit number.
unsigned int Size
Any sane size indicator cannot go negative.
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.
Input/Output vector for multi-packet operations.
C int connect(int sockfd, struct sockaddr *addr, socklen_t addrlen)
Connect a socket to an address/port.
C int sendmsg(int sockfd, const struct msghdr *msg, int flags)
Send multiple datagrams to a remote host.