Oracle iPlanet Web Proxy Server 4.0.14 NSAPI Developer's Guide

protocol_dump822

The protocol_dump822 function prints headers from a specified pblock into a specific buffer, with a specified size and position. Use this function to serialize the headers so that they can be sent, for example, in a mail message.

Syntax

char *protocol_dump822(pblock *pb, char *t, int *pos, int tsz);

Returns

A pointer to the buffer, which will be reallocated if necessary.

The function also adds *pos to the end of the headers in the buffer.

Parameters

pblock *pb is the pblock structure.

char *t is the buffer, allocated with MALLOC, CALLOC, or STRDUP.

int *pos is the position within the buffer at which the headers are to be dumped.

int tsz is the size of the buffer.

See Also

protocol_start_response, protocol_status