[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

 

LUDPEndpoint



Overview:

LUDPEndpoint is a PowerPlant class that is used for implementing Internet UDP endpoints. UDP is the sessionless protocol of the Internet, and is used by a handful of protocols such as NTP (network time protocol).

Methods :

The methods in this class are:

 

LUDPEndpoint()  
~LUDPEndpoint()  
ReceiveFrom()  
SendPacketData()  

Data Members:

There are no data members in this class.

 

Operation:

In PowerPlant, there are two subclasses of LUDPEndpoint, named LMacUDPEndpoint and LOpenTptUDPEndpoint. The appropriate class is created automatically when you call UNetworkFactory::CreateUDPEndpoint().

Source files:

(Networking Classes)

LUDPEndpoint.h

LUDPEndpoint.cp

See also:

LEndpoint

LMacTCPUDPEndpoint

LOpenTptUDPEndpoint

LUDPEndpoint()

Purpose:

The constructor creates the object.

Access :

Public

Prototype:

LUDPEndpoint();
Parameters:

None

~LUDPEndpoint()

Purpose:

The destructor destroys the object.

Access :

Virtual, Public

Prototype:

~LUDPEndpoint();

ReceiveFrom()

Purpose:

Receive UDP datagrams.

Access :

Pure virtual, Public

Prototype:

void ReceiveFrom( LInternetAddress&
   outRemoteAddress,
	void* outDataBuffer,

	UInt32& ioDataSize,

	UInt32	 inTimeoutTicks = Timeout_None) = 0;
Parameters:

The parameter for these constructors is:

 

LInternetAddress outRemoteAddress The pointer to the thread.
void* outDataBuffer The buffer.
UInt32& ioDataSize The size of the data.
UInt32 inTimeoutTicks The time to wait. The default is Timeout_None.

Return:

None

SendPacketData()

Purpose:

Send UDP datagrams.

Access :

Pure virtual, Public

Prototype:

void SendPacketData(

	LInternetAddress& inRemoteHost,

	void* inData,

	UInt32 inDataSize) = 0;
Parameters:

The parameter for these constructors is:

 

LInternetAddress inRemoteHost The address.
void* inData The buffer.
UInt32& inDataSize The size of the data.

Return:

None

 


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: July 21, 2000