Tizen RT Libs&Environment
v1.0 D5
|
Socket APIs. More...
#include <tinyara/config.h>
#include <sys/sock_internal.h>
#include <sys/types.h>
Go to the source code of this file.
Macros | |
#define | EXTERN extern |
Functions | |
int | socket (int domain, int type, int protocol) |
creates an unbound socket in a communications domain. More... | |
int | bind (int sockfd, FAR const struct sockaddr *addr, socklen_t addrlen) |
assigns an address to an unnamed socket. More... | |
int | connect (int sockfd, FAR const struct sockaddr *addr, socklen_t addrlen) |
requests a connection to be made on a socket More... | |
int | listen (int sockfd, int backlog) |
listen for socket connections and limit the queue of incoming connections More... | |
int | accept (int sockfd, struct sockaddr *addr, socklen_t *addrlen) |
requests a connection to be made on a socket More... | |
ssize_t | send (int sockfd, FAR const void *buf, size_t len, int flags) |
send a message on a socket More... | |
ssize_t | sendto (int sockfd, FAR const void *buf, size_t len, int flags, FAR const struct sockaddr *to, socklen_t tolen) |
send a message on a socket More... | |
ssize_t | recv (int sockfd, FAR void *buf, size_t len, int flags) |
send a message on a socket More... | |
ssize_t | recvfrom (int sockfd, FAR void *buf, size_t len, int flags, FAR struct sockaddr *from, FAR socklen_t *fromlen) |
receive a message from a socket More... | |
int | shutdown (int sockfd, int how) |
shut down socket send and receive operations More... | |
int | closesocket (int s) |
close a socket More... | |
int | setsockopt (int sockfd, int level, int option, FAR const void *value, socklen_t value_len) |
set the socket options More... | |
int | getsockopt (int sockfd, int level, int option, FAR void *value, FAR socklen_t *value_len) |
get the socket options More... | |
int | getsockname (int sockfd, FAR struct sockaddr *addr, FAR socklen_t *addrlen) |
get the socket name More... | |
int | getpeername (int s, struct sockaddr *name, socklen_t *namelen) |
get the name of the peer socket More... | |
Socket APIs.
Definition in file socket.h.