|
lwIP
2.0.3
Lightweight IP stack
|
#include "lwip/opt.h"#include "lwip/sockets.h"#include "lwip/api.h"#include "lwip/sys.h"#include "lwip/igmp.h"#include "lwip/inet.h"#include "lwip/tcp.h"#include "lwip/raw.h"#include "lwip/udp.h"#include "lwip/memp.h"#include "lwip/pbuf.h"#include "lwip/priv/tcpip_priv.h"#include <string.h>Data Structures | |
| struct | lwip_sock |
| struct | lwip_select_cb |
| union | sockaddr_aligned |
Macros | |
| #define | SELWAIT_T u8_t |
Functions | |
| void | lwip_socket_thread_init (void) |
| void | lwip_socket_thread_cleanup (void) |
| int | lwip_listen (int s, int backlog) |
| int | lwip_shutdown (int s, int how) |
| int | lwip_fcntl (int s, int cmd, int val) |
Sockets BSD-Like API module
| #define SELWAIT_T u8_t |
This is overridable for the rare case where more than 255 threads select on the same socket...
| int lwip_fcntl | ( | int | s, |
| int | cmd, | ||
| int | val | ||
| ) |
A minimal implementation of fcntl. Currently only the commands F_GETFL and F_SETFL are implemented. Only the flag O_NONBLOCK is implemented.
| int lwip_listen | ( | int | s, |
| int | backlog | ||
| ) |
Set a socket into listen mode. The socket may not have been used for another connection previously.
| s | the socket to set to listening mode |
| backlog | (ATTENTION: needs TCP_LISTEN_BACKLOG=1) |
| int lwip_shutdown | ( | int | s, |
| int | how | ||
| ) |
Close one end of a full-duplex connection.
| void lwip_socket_thread_cleanup | ( | void | ) |
LWIP_NETCONN_SEM_PER_THREAD==1: destroy thread-local semaphore
| void lwip_socket_thread_init | ( | void | ) |
LWIP_NETCONN_SEM_PER_THREAD==1: initialize thread-local semaphore