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

 

StMacTCPOperation



Overview:

StMacTCPOperation is a PowerPlant class that is used for managing TCPParamBlock and thread blocking for MacTCP interface calls. This keeps a global reference to the MacTCP driver and DNS code segment.

Methods :

The methods in this class are:

 

StMacTCPOperation()  
~StMacTCPOperation()  
AsyncRun()  
GetCompletionProc()  
GetParamBlock()  
Int_TCPCompletionProc()  
Run()  
 

Data Members:

The data members in this class are:

 

mTCPParamBlock  
sMacTCPCompletionProc  
sTCPParamBlockDeleteQueue  
 

Source files:

(Networking Classes)

UMacTCPSupport.h

UMacTCPSupport.cp

See also:

StAsyncOperation

StMacTCPListenOperation

StMacTCPSendOperation

StMacTCPOperation()

Purpose:

The constructor creates the object.

Access :

Public

Prototype:

StMacTCPOperation( SInt16 inOperationCode,

	StreamPtr inStreamPtr );
Parameters:

This constructor has the following parameters:

 

SInt16  
inOperationCode  
The operation code.  
StreamPtr  
inStreamPtr  
The stream pointer.  

~StMacTCPOperation()

Purpose:

The destructor destroys the object.

Access :

Public

Prototype:

~StMacTCPOperation();

AsyncRun()

Purpose:

Run the operation and return immediately. The completion will appear as a notification on the endpoint.

Functions using this method can NOT be aborted.

Presently used only for LMacTCPTCPEndpoint::SendDisconnect() to mimic behavior of OT.

Access :

Public

Prototype:

void AsyncRun( LMacTCPTCPEndpoint* inEndpoint,

	UInt16 inEventCode );
Parameters:

This method has the following parameters:

 

LMacTCPTCPEndpoint*  
inEndpoint  
The endpoint.  
UInt16  
inEventCode  
The event code.  

Return:

None

GetCompletionProc()

Purpose:

Return the value of sMacTCPCompletionProc.

Access :

Inline, Public

Prototype:

inline TCPIOCompletionUPP GetCompletionProc();
Parameters:

None

Return:

The Completion routine Universal Procedure Pointer (UPP).

GetParamBlock()

Purpose:

Retrieve the value of mTCPParamBlock.

Access :

Inline, Public

Prototype:

inline STCPParamBlock&	GetParamBlock();
Parameters:

None

Return:

The parameter block.

Int_TCPCompletionProc()

Purpose:

The completion routine for the operation.

Access :

Protected, Static

Prototype:

pascal void Int_TCPCompletionProc(

	STCPParamBlock*	inParamBlock

		#if !GENERATINGCFM

			: __A0

		#endif
  );
Parameters:

This method has the following parameters:

 

STCPParamBlock*  
inParamBlock  
The endpoint.  

Return:

None

Run()

Purpose:

Attempt the operation. Check for immediate failure.

Access :

Public

Prototype:

void Run();
Parameters:

None

Return:

None

mTCPParamBlock

Purpose:

The TCP parameter block.

Access :

Protected

Prototype:

STCPParamBlock * mTCPParamBlock;

sMacTCPCompletionProc

Purpose:

The MacTCP completion procedure.

Access :

Private, Static

Prototype:

TCPIOCompletionUPP sMacTCPCompletionProc;

sTCPParamBlockDeleteQueue

Purpose:

The MacTCP parameter block deletion queue.

Access :

Private, Static

Prototype:

LTCPParamBlockDeleteQueue * sTCPParamBlockDeleteQueue;

 


[ 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