The session_create function creates a new Session structure for the client with a specified socket descriptor and a specified socket address. The function returns a pointer to that structure.
#include <base/session.h> Session *session_create(SYS_NETFD csd, struct sockaddr_in *sac);
A pointer to the new Session structure f one was created.
NULL if no new Session structure was created.
SYS_NETFD csd is the platform-independent socket descriptor.
sockaddr_in *sac is the socket address.