alloc_socket() is only used within LwIP.
 
Symbols
loading...
Files
loading...

alloc_socket() function

Allocate a new socket for a given netconn.

Syntax

static int alloc_socket(struct netconn *newconn,     int accepted);

Arguments

newconn

the netconn for which to allocate a socket

accepted

1 if socket has been created by accept(), 0 if socket has been created by socket()

Return value

the index of the new socket; -1 on error

References

LocationReferrerText
sockets.c:501
alloc_socket(struct netconn *newconn, int accepted)
sockets.c:653lwip_accept()
newsock = alloc_socket(newconn, 1);
sockets.c:1731lwip_socket()
i = alloc_socket(conn, 0);

Call Tree

Functions calling alloc_socket()
Functions called by alloc_socket()
all items filtered out
alloc_socket()
printf()
all items filtered out
Data read by alloc_socket()
Data written by alloc_socket()
alloc_socket()
Type of alloc_socket()
alloc_socket()
all items filtered out