CCookie::addPort
The CCookie::addPort function adds a new port into the portlist of the cookie.
int addPort(
int portNum // indicates the new port to be added
);
Return Type
int
Upon successful completion, zero is returned. Otherwise, a value of non-zero is returned.
Parameters
portNum
An integer which indicates the new port to be added.
Remarks
This function adds a new port into the portlist of the cookie. This portlist contains some ports to which a cookie may be returned in a Cookie request header.
The CCookie::getPorts function can be used to retrieve this portlist.
See Also
CCookie, CCookie::getPorts, CResponse::addCookie, CRequest::getCookies, CRequest::getCookie
Example