C# Class MiniUDP.NetUtil

Show file Open project: ashoulson/MiniUDP Class Usage Examples

Public Methods

Method Description
StringToEndPoint ( string address ) : IPEndPoint

Returns an IPv4 IP:Port string as an IPEndpoint.

Private Methods

Method Description
ByteSeqDiff ( byte a, byte b ) : int

Compares two bytes a - b with wrap-around arithmetic.

UShortSeqDiff ( ushort a, ushort b ) : int

Compares two ushorts a - b with wrap-around arithmetic.

ValidateKickReason ( NetCloseReason reason ) : NetCloseReason

Validates that a given kick reason is acceptable for a remote kick.

Method Details

StringToEndPoint() public static method

Returns an IPv4 IP:Port string as an IPEndpoint.
public static StringToEndPoint ( string address ) : IPEndPoint
address string
return System.Net.IPEndPoint