LInetPacket::LInetPacket

#include "ltwrappr.h"

L_VOID LInetPacket::LInetPacket(L_VOID);

L_VOID LInetPacket::LInetPacket(uExtra, pExtra, pszFormat, );

L_UINT uExtra;

/* size of the binary data */

L_VOID * pExtra;

/* binary data to be sent */

L_CHAR * pszFormat;

/* format describing the parameters */

 

/* variable list of parameters */

Constructs and initializes the member variables of the LlnetPacket object.

Parameter

Description

uExtra

Size of the binary data. Used only if pExtra is not NULL.

pExtra

Binary (extra) data to be sent. Use NULL if there is no binary data to send.

pszFormat

Format of the command parameters. Possible values are:

 

Value

Meaning

 

%d

decimal integer

 

%l

long signed integer

 

%c

character

 

%s

string

 

%ud

unsigned long integer

 

%us

unsigned short integer

 

%ss

signed short integer Variable list of parameters for this command.

Returns

None

Comments

LlnetPacket::LlnetPacket () is a constructor for the LlnetPacket object. It creates an LlnetPacket object with no extra data and no parameters.

Extra data can be added to the LlnetPacket object, or data can be changed by calling LlnetPacket::SetExtraData.

Parameter data can be added or changed by calling LlnetPacket::SetFormats.

LlnetPacket::LlnetPacket (uExtra, pExtra, pszFormat, ) is a constructor for the LlnetPacket object. It creates an LlnetPacket object with the specified extra data and parameters.

These functions allow the user to create a packet containing the parameters to send to a remote computer. Note that this packet can be used to send both commands and responses. The packet can contain a binary chunk (described with uExtra and pExtra) and a variable number of parameters (described by pszFormat). If there are no parameters to send, pszFormat can be either NULL or an empty string ("").

Required DLLs and Libraries

LTNET

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LInetPacket::~LInetPacket, Class Members

Example

For an example, refer to LInet::SendCmd.