TCPConnection Constructor |
Create a TCP Connection to a Brainboxes EDDevice
Use Brainboxes Boost.IO to find out the IP address of the Brainboxes EDDevice on your network
Namespace: Brainboxes.IOAssembly: Brainboxes.IO (in Brainboxes.IO.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public TCPConnection(
string ip = "192.168.127.255",
int port = 9500,
int timeout = 2000,
int connectionTimeout = 20000
)
Public Sub New (
Optional ip As String = "192.168.127.255",
Optional port As Integer = 9500,
Optional timeout As Integer = 2000,
Optional connectionTimeout As Integer = 20000
)
new :
?ip : string *
?port : int *
?timeout : int *
?connectionTimeout : int
(* Defaults:
let _ip = defaultArg ip "192.168.127.255"
let _port = defaultArg port 9500
let _timeout = defaultArg timeout 2000
let _connectionTimeout = defaultArg connectionTimeout 20000
*)
-> TCPConnection
Parameters
- ip String (Optional)
- The IP address of the EDDevice to connect to, defaults to 192.168.127.255, which will be the case if the device is on a network without DHCP and the connecting computer is on the same subnet
- port Int32 (Optional)
- The TCP IP Port number, defaults to 9500
- timeout Int32 (Optional)
- The Read and Write Timeout for data, defaults to 2,000ms
- connectionTimeout Int32 (Optional)
- The Connection Timeout for the TCP socket to open, defaults to 20,000ms
See Also