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

 

UNetworkFactory



Overview:

UNetworkFactory is a PowerPlant class that is used for easily creating TCP endpoints and mappers based on the current running system software.

Methods :

The methods in this class are:

 

CreateInternetMapper()  
CreateTCPEndpoint()  
CreateUDPEndpoint()  
HasMacTCP()  
HasOpenTransport()  
HasTCP()  

Data Members:

There are no data members in this class.

 

Operation:

Calling simple methods in this utility class automatically chooses MacTCP or OpenTransport support transparently.

Source files:

(Networking Classes)

UNetworkFactory.h

UNetworkFactory.cp

See also:

LEndpoint

LTCPEndpoint

LUDPEndpoint

CreateInternetMapper()

Purpose:

Create the best name mapper object for Internet address resolution given the available system software.

Access :

Static, Public

Prototype:

LInternetMapper* CreateInternetMapper();
Parameters:

None

Return:

A pointer to the mapper object.

CreateTCPEndpoint()

Purpose:

Create the best endpoint object for TCP/IP connections given the available system software.

Access :

Static, Public

Prototype:

LTCPEndpoint* CreateTCPEndpoint(UInt32 
inReceiveBufferSize)
Parameters:

The parameter for these constructors is:

 

UInt32 inReceiveBufferSize The pointer to the thread.

Return:

A pointer to the LTCPEndpoint.

CreateUDPEndpoint()

Purpose:

Create the best endpoint object for TCP/IP connections given the available system software.

Access :

Static, Public

Prototype:

LUDPEndpoint* CreateUDPEndpoint();
Parameters:

None

Return:

A pointer to the LUDPEndpoint.

HasMacTCP()

Purpose:

Indicates whether MacTCP is present.

Access :

Static, Public

Prototype:

Boolean HasMacTCP();
Parameters:

None

Return:

Return true if MacTCP is present.

HasOpenTransport()

Purpose:

Indicates whether Open Transport is present.

Access :

Static, Public

Prototype:

Boolean HasOpenTransport();
Parameters:

None

Return:

Return true if OpenTransport is present.

HasTCP()

Purpose:

Determines whether MacTCP or OpenTransport are installed.

Access :

Static, Public

Prototype:

Boolean HasTCP();
Parameters:

None

Return:

Returns true if either MacTCP or Open Transport are installed.

 


[ 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