LMacTCPUDPEndpoint is a PowerPlant class that is an implementation of LTCPEndpoint that communicates with MacTCP.
Methods :
The methods in this class are:
Data Members:
The data members in this class are:
Operation:
We recommend that you do not make a subclass of this class.
Source files:
See also:
Purpose:
The constructor creates the object.
Access :
Prototype:
LMacTCPUDPEndpoint(UInt32 inReceiveBufferSize);Parameters:
This constructor has the following parameter:
Purpose:
The destructor destroys the object.
Access :
Prototype:
virtual ~LMacTCPUDPEndpoint();Parameters:
Purpose:
Access :
Prototype:
virtual void AbortThreadOperation(
LThread * inThread); This method has the following parameter:
Return:
Purpose:
Enable the sending of acknowledgements.
Access :
Prototype:
virtual void AckSends();Parameters:
Return:
Purpose:
Access :
Prototype:
virtual void Bind(
LInternetAddress& inLocalAddress, UInt32 inListenQueueSize,
Boolean inReusePort );Parameters:
This method has the following parameter:
Return:
Purpose:
Turn off the generation of acknowledgments.
Access :
Prototype:
virtual void DontAckSends();Parameters:
Return:
Purpose:
Obtain the local address, held in mLocalAddress.
Access :
Prototype:
LInternetAddress* GetLocalAddress();Parameters:
Return:
Purpose:
Retrieve the endpoint state, stored in mEndpointState.
Access :
Prototype:
virtual EEndpointState GetState();Parameters:
Return:
The value of mEndpointState.
Purpose:
Called by NotifyProc to handle notifications for this endpoint. You will be notified via a Broadcast at primary task time of the event if necessary.
Warning: This routine will probably be called at interrupt time.
Access :
Prototype:
void Int_HandleAsyncEvent(
UInt16 inEventCode, ICMPReport* inEventCode,
StreamPtr inStreamPtr ); This method has the following parameters:
Return:
Purpose:
Access :
Prototype:
pascal static void Int_UDPNotifyProc(
StreamPtr inStreamPtr, UInt16 inEventCode,
Ptr inUserPtr, ICMPReport* inIcmpMsg ); This method has the following parameters:
Return:
Purpose:
Determine whether sends are being acknowledged.
Access :
Prototype:
virtual Boolean IsAckingSends();Parameters:
Return:
Returns the value of mAckSends.
Purpose:
Access :
Prototype:
virtual void ReceiveFrom(
LInternetAddress& outRemoteAddress, void* outDataBuffer, UInt32& ioDataSize, UInt32 inTimeoutSeconds ); This method has the following parameters:
Return:
Purpose:
Access :
Prototype:
virtual void SendPacketData(
LInternetAddress& inRemoteHost, void* inData,
UInt32 inDataSize ); This method has the following parameters:
Return:
Purpose:
Access :
Prototype:
virtual void Unbind();Parameters:
Return:
Purpose:
Access :
Prototype:
StreamPtr mUDPStream;
Purpose:
Access :
Prototype:
LInternetAddress * mLocalAddress;
Purpose:
Whether to acknowledge sends or not.
Access :
Prototype:
Boolean mAckSends;
Purpose:
Access :
Prototype:
UInt16 mEndpointState;
Purpose:
Access :
Prototype:
Ptr mReceiveBuffer;
Purpose:
The receive buffer size in bytes.
Access :
Prototype:
UInt32 mReceiveBufferSize;
Purpose:
Access :
Prototype:
LNetMessageQueue * mMessageQueue;
Purpose:
Access :
Prototype:
LSharedMemoryPool * mSharedPool;
Purpose:
Access :
Prototype:
LMacTCPUDPSendQueue * mSendQueue;
Purpose:
The procedure pointer for the UDP notification procedure.
Access :
Prototype:
UDPNotifyUPP sUDPNotifyUPP;