LInet::SendRsp
#include " ltwrappr.h "
L_INT LInet::SendRsp (plRemoteComp, uCommand, uCommandID, pInetPacket, nStatus)
LInet * plRemoteComp; |
/* instance of a remote computer */ |
CMDTYPE uCommand; |
/* command type */ |
L_UINT uCommandID; |
/* command id */ |
LlnetPacket * pInetPacket; |
/* pointer to an LlnetPacket object */ |
L_INT nStatus; |
/* status */ |
Sends a response to a remote computer. This function is only available in the Internet toolkit.
Parameter |
Description |
plRemoteComp |
Instance of the remote computer to which the response will be sent. |
uCommand |
The command type which prompted this response. For a list of possible values, refer to CMDTYPE. |
uCommandID |
Command ID. Each command sent by a member of a connection should have a unique ID. Since a member of a connection may send several commands, this ID allows that member to identify when a specific command request has been completed. |
pInetPacket |
Pointer to an LlnetPacket object containing the parameters for the response. You can pass NULL if the command doesn't need any parameters. |
nStatus |
Status of the original command. If the command completes successfully, this should be SUCCESS. Otherwise, it should be one of the Return Codes. |
Returns
SUCCESS |
This function was successful. |
< 1 |
An occurred. Refer to Return Codes. |
Comments
This function sends a response to a command that was sent from a remote computer using the LInet::SendCmd function.
To process commands, a class must be derived from LInet and the LInet::CommandCallBack member function must be overridden.
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: |
LInet::SendCmd, LInet::ResponseCallBack, LInet::CommandCallBack, Class Members |
Topics: |
|
|
Example
For an example, refer to LInet::SendCmd.