Oracle iPlanet Web Proxy Server 4.0.14 Configuration File Reference

Syntax

Connect fn=your-connect-function

Only the first applicable Connect function is called, starting from the most restrictive object. Occasionally you might want to call multiple functions until a connection is established. The function returns REQ_NOACTION if the next function should be called. If the function fails to connect, the return value is REQ_ABORT. If the function connects successfully, the connected socket descriptor will be returned.

The Connect function must have this prototype:

int your_connect_function(pblock *pb, Session *sn, Request *rq);

Connect receives its destination host name and port number from:

pblock_findval (“connect-host”, rq->vars)
atoi (pblock_findval (“connect-port”, rq->vars))

The host can be in a numeric IP address format.

To use the NSAPI custom DNS class functions to resolve the host name, make a call to this function:

struct hostent *servact_gethostbyname(char *host name, Session *sn, 
	Request *rq);