Prajna


NetUtils

Abstract Class with static members for network utility functions

Constructors

ConstructorDescription
new()
Signature: unit -> NetUtils

Static members

Static memberDescription
GetTCPListener(startPort)
Signature: startPort:Option<int> -> TcpListener * int

Get a TCP Listener which listens on a port Optional argument - default random port between 30000 and 65535 the first port which the listener tries A tuple of (listener, randomPort) listener - the TCPListener randomPort - the port on which it is listening

ParseAddrPort(addrport)
Signature: addrport:string -> string * int

Parse a string into (address, port) The string represting address and port A tuple of (string, int) representing the address and port

Fork me on GitHub