C# Class org.GraphDefined.Vanaheimr.Hermod.NetworkingHelpers

Networking address helpers.
Mostrar archivo Open project: Vanaheimr/Hermod

Public Methods

Method Description
HostToNetworkOrder ( int host ) : int
HostToNetworkOrder ( long host ) : long
HostToNetworkOrder ( short host ) : short
NetworkToHostOrder ( int network ) : int
NetworkToHostOrder ( long network ) : long
NetworkToHostOrder ( short network ) : short
Write ( this NetworkStream, String UTF8Text, System.Boolean Flush = true ) : void

Private Methods

Method Description
SwapInt ( int number ) : int
SwapLong ( long number ) : long
SwapShort ( short number ) : short

Method Details

HostToNetworkOrder() public static method

public static HostToNetworkOrder ( int host ) : int
host int
return int

HostToNetworkOrder() public static method

public static HostToNetworkOrder ( long host ) : long
host long
return long

HostToNetworkOrder() public static method

public static HostToNetworkOrder ( short host ) : short
host short
return short

NetworkToHostOrder() public static method

public static NetworkToHostOrder ( int network ) : int
network int
return int

NetworkToHostOrder() public static method

public static NetworkToHostOrder ( long network ) : long
network long
return long

NetworkToHostOrder() public static method

public static NetworkToHostOrder ( short network ) : short
network short
return short

Write() public static method

public static Write ( this NetworkStream, String UTF8Text, System.Boolean Flush = true ) : void
NetworkStream this
UTF8Text String
Flush System.Boolean
return void