LEndpoint is a PowerPlant class that forms the basis for networking. Most of the methods are pure virtual, which means that you need to supply implementations if you inherit from this class.
Methods :
The methods in this class are:
Data Members:
The data members in this class are:
Operation:
This class encapsulates the idea of a "network endpoint," or one side of a two-way communication link. The endpoint is the object that is used to send or receive data over the network.
LEndpoint is an abstract base class (thus its constructor is declared protected). Use one of the predefined subclasses, such as LMacTCPTCPEndpoint or LOpenTptTCPEndpoint, or use the UNetworkFactory::CreateTCPEndpoint() function to create the appropriate endpoint for the system software that's installed on the user's machine.
Source files:
See also:
Purpose:
The constructor creates the object.
Access :
Prototype:
LEndpoint();Parameters:
Purpose:
The destructor destroys the object.
Access :
Prototype:
virtual ~LEndpoint();Parameters:
Purpose:
This method must be implemented by your class since it is pure virtual. Abort a thread operation.
Access :
Prototype:
virtual void AbortThreadOperation(
LThread * inThread ) = 0; The parameter for this methods is:
Return:
Purpose:
Enable the acknowledgement of sent data for the endpoint.
Access :
Prototype:
virtual void AckSends() = 0;Parameters:
Return:
Purpose:
Reserve a TCP port for the connection.
Access :
Prototype:
virtual void Bind(
LInternetAddress& inLocalAddress,
UInt32 inListenQueueSize = 0,
Boolean inReusePort = true) = 0;Parameters:
The parameters for this method are:
LInternetAddress& |
inLocalAddress | The local address. |
| UInt32 | inListenQueueSize | The listen queue size in bytes, the default is 0. |
| Boolean | inReusePort | Whether to reuse the port or not, the default is 0. |
Return:
Purpose:
Disable the acknowledgement of sent data for the endpoint.
Access :
Prototype:
virtual void DontAckSends() = 0;Parameters:
Return:
Purpose:
This method sets the value of the mQueueSends data member to false.
Access :
Prototype:
virtual void DontQueueSends();Parameters:
Return:
Purpose:
Return the network address of your local computer.
Access :
Prototype:
virtual LInternetAddress* GetLocalAddress() = 0;Parameters:
Return:
Purpose:
Return the current state of the endpoint.
Access :
Prototype:
virtual EEndpointState GetState() = 0;Parameters:
Return:
Purpose:
Dtermine whether the endpoint is acknowledging sends.
Access :
Prototype:
virtual Boolean IsAckingSends() = 0;Parameters:
Return:
Returns true if the endpoint is ACK-ing sends.
Purpose:
Determines if the endpoint is queuing sends.
Access :
Prototype:
virtual Boolean IsQueuingSends();Parameters:
Return:
Returns true if the endpoint is queuing sends.
Purpose:
Directs the endpoint to queue sends.
Access :
Prototype:
virtual void QueueSends();Parameters:
Return:
Purpose:
Release a previously-bound TCP port.
Access :
Prototype:
virtual void Unbind() = 0;Parameters:
Return:
Purpose:
State variable for whether to queue send traffic for the endpoint.
Access :
Prototype:
Boolean mQueueSends;