lwIP
2.0.2
Lightweight IP stack
|
Modules | |
NETDB API | |
Macros | |
#define | accept(s, addr, addrlen) lwip_accept(s,addr,addrlen) |
#define | bind(s, name, namelen) lwip_bind(s,name,namelen) |
#define | shutdown(s, how) lwip_shutdown(s,how) |
#define | getpeername(s, name, namelen) lwip_getpeername(s,name,namelen) |
#define | getsockname(s, name, namelen) lwip_getsockname(s,name,namelen) |
#define | setsockopt(s, level, optname, opval, optlen) lwip_setsockopt(s,level,optname,opval,optlen) |
#define | getsockopt(s, level, optname, opval, optlen) lwip_getsockopt(s,level,optname,opval,optlen) |
#define | closesocket(s) lwip_close(s) |
#define | connect(s, name, namelen) lwip_connect(s,name,namelen) |
#define | listen(s, backlog) lwip_listen(s,backlog) |
#define | recv(s, mem, len, flags) lwip_recv(s,mem,len,flags) |
#define | recvfrom(s, mem, len, flags, from, fromlen) lwip_recvfrom(s,mem,len,flags,from,fromlen) |
#define | send(s, dataptr, size, flags) lwip_send(s,dataptr,size,flags) |
#define | sendmsg(s, message, flags) lwip_sendmsg(s,message,flags) |
#define | sendto(s, dataptr, size, flags, to, tolen) lwip_sendto(s,dataptr,size,flags,to,tolen) |
#define | socket(domain, type, protocol) lwip_socket(domain,type,protocol) |
#define | select(maxfdp1, readset, writeset, exceptset, timeout) lwip_select(maxfdp1,readset,writeset,exceptset,timeout) |
#define | ioctlsocket(s, cmd, argp) lwip_ioctl(s,cmd,argp) |
#define | read(s, mem, len) lwip_read(s,mem,len) |
#define | write(s, dataptr, len) lwip_write(s,dataptr,len) |
#define | writev(s, iov, iovcnt) lwip_writev(s,iov,iovcnt) |
#define | close(s) lwip_close(s) |
#define | fcntl(s, cmd, val) lwip_fcntl(s,cmd,val) |
#define | ioctl(s, cmd, argp) lwip_ioctl(s,cmd,argp) |
#define | inet_ntop(af, src, dst, size) |
#define | inet_pton(af, src, dst) |
BSD-style socket API.
Thread-safe, to be called from non-TCPIP threads only.
Can be activated by defining LWIP_SOCKET to 1.
Header is in posix/sys/socket.h
#define accept | ( | s, | |
addr, | |||
addrlen | |||
) | lwip_accept(s,addr,addrlen) |
#define bind | ( | s, | |
name, | |||
namelen | |||
) | lwip_bind(s,name,namelen) |
#define close | ( | s | ) | lwip_close(s) |
#define closesocket | ( | s | ) | lwip_close(s) |
#define connect | ( | s, | |
name, | |||
namelen | |||
) | lwip_connect(s,name,namelen) |
#define fcntl | ( | s, | |
cmd, | |||
val | |||
) | lwip_fcntl(s,cmd,val) |
#define getpeername | ( | s, | |
name, | |||
namelen | |||
) | lwip_getpeername(s,name,namelen) |
#define getsockname | ( | s, | |
name, | |||
namelen | |||
) | lwip_getsockname(s,name,namelen) |
#define getsockopt | ( | s, | |
level, | |||
optname, | |||
opval, | |||
optlen | |||
) | lwip_getsockopt(s,level,optname,opval,optlen) |
#define inet_ntop | ( | af, | |
src, | |||
dst, | |||
size | |||
) |
#define inet_pton | ( | af, | |
src, | |||
dst | |||
) |
#define ioctl | ( | s, | |
cmd, | |||
argp | |||
) | lwip_ioctl(s,cmd,argp) |
#define ioctlsocket | ( | s, | |
cmd, | |||
argp | |||
) | lwip_ioctl(s,cmd,argp) |
#define listen | ( | s, | |
backlog | |||
) | lwip_listen(s,backlog) |
#define select | ( | maxfdp1, | |
readset, | |||
writeset, | |||
exceptset, | |||
timeout | |||
) | lwip_select(maxfdp1,readset,writeset,exceptset,timeout) |
#define send | ( | s, | |
dataptr, | |||
size, | |||
flags | |||
) | lwip_send(s,dataptr,size,flags) |
#define sendmsg | ( | s, | |
message, | |||
flags | |||
) | lwip_sendmsg(s,message,flags) |
#define sendto | ( | s, | |
dataptr, | |||
size, | |||
flags, | |||
to, | |||
tolen | |||
) | lwip_sendto(s,dataptr,size,flags,to,tolen) |
#define setsockopt | ( | s, | |
level, | |||
optname, | |||
opval, | |||
optlen | |||
) | lwip_setsockopt(s,level,optname,opval,optlen) |
#define shutdown | ( | s, | |
how | |||
) | lwip_shutdown(s,how) |
#define socket | ( | domain, | |
type, | |||
protocol | |||
) | lwip_socket(domain,type,protocol) |
#define write | ( | s, | |
dataptr, | |||
len | |||
) | lwip_write(s,dataptr,len) |
#define writev | ( | s, | |
iov, | |||
iovcnt | |||
) | lwip_writev(s,iov,iovcnt) |