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:
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:
See also:
Purpose:
Create the best name mapper object for Internet address resolution given the available system software.
Access :
Prototype:
LInternetMapper* CreateInternetMapper();Parameters:
Return:
A pointer to the mapper object.
Purpose:
Create the best endpoint object for TCP/IP connections given the available system software.
Access :
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.
Purpose:
Create the best endpoint object for TCP/IP connections given the available system software.
Access :
Prototype:
LUDPEndpoint* CreateUDPEndpoint();Parameters:
Return:
A pointer to the LUDPEndpoint.
Purpose:
Indicates whether MacTCP is present.
Access :
Prototype:
Boolean HasMacTCP();Parameters:
Return:
Return true if MacTCP is present.
Purpose:
Indicates whether Open Transport is present.
Access :
Prototype:
Boolean HasOpenTransport();Parameters:
Return:
Return true if OpenTransport is present.
Purpose:
Determines whether MacTCP or OpenTransport are installed.
Access :
Prototype:
Boolean HasTCP();Parameters:
Return:
Returns true if either MacTCP or Open Transport are installed.