CCookie::getPorts

The CCookie::getPorts function retrieves all ports in the portlist of the cookie.

int getPorts();
int ** portList // containing all ports in the portlist
);




Return Type

int
Upon successful completion, an integer which indicates the number of the ports in the portlist is returned. Otherwise, a negative value is returned.


Parameters

portList
An integer array which contains all ports in the portlist.


Remarks

This function retrieves all ports in the portlist of the cookie. This portlist contains the ports to which a cookie may be returned in a Cookie request header.

The CCookie::addPort function can be used to add a new port into the portlist of the cookie.


See Also

CCookie, CCookie::addPort, CResponse::addCookie, CRequest::getCookies, CRequest::getCookie

Example