Sun Java System Web Proxy Server 4.0.3 2006Q2 NSAPI Developer's Guide

session_create

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.

Syntax

#include <base/session.h>
Session *session_create(SYS_NETFD csd, struct sockaddr_in *sac);

Returns

Parameters

SYS_NETFD csd is the platform-independent socket descriptor.

sockaddr_in *sac is the socket address.

See also

session_maxdns