The session_create function creates a new Session structure for the client with a specified socket descriptor and a specified socket address. It 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 if one was created
NULL if no new Session was created
SYS_NETFD csd is the platform-independent socket descriptor.
sockaddr_in *sac is the socket address.