Method | Description | |
---|---|---|
FixHostnames ( string hostname ) : string |
Fixes hostnames to have a dot in the end, most dns records has that standard.
|
|
GetProtoByName ( string name ) : int |
Gets protocol number by name (tcp/udp/icmp etc')
|
|
GetServByName ( string name, string protocol ) : int |
Gets service port number by name/protocol http://stackoverflow.com/questions/3457977/convert-service-name-to-port |
|
ParseIP ( string ipaddr ) : |
ParseIP or return IPAddress without exceptions
|
|
ToString ( |
Converts bytes (uint) to ip dot notation
|
|
ToUint32 ( string address ) : |
Parses a string and returns uint
|
Method | Description | |
---|---|---|
CreateWSAException ( ) : |
public static FixHostnames ( string hostname ) : string | ||
hostname | string | |
return | string |
public static GetProtoByName ( string name ) : int | ||
name | string | protocol name |
return | int |
public static GetServByName ( string name, string protocol ) : int | ||
name | string | name of service |
protocol | string | protocol the service is using |
return | int |
public static ParseIP ( string ipaddr ) : |
||
ipaddr | string | |
return |
public static ToString ( |
||
address | ||
return | string |
public static ToUint32 ( string address ) : |
||
address | string | ipv4 address |
return |