ConnectionOpen Method (OpenFlags) |
Namespace: Demo3D.Net
public void Open( OpenFlags openFlags = OpenFlags.Default )
public Client<IPacketIOService> OpenClient(string host, int port) { // Create a connection to a client, without opening it. var client = TcpClient.Open(host, port, OpenFlags.NoOpen); // Get the protocol properties and set TCP.ReceiveTimeout to 1 second. dynamic properties = client.Properties; properties.TCP.ReceiveTimeout = 1000; // Open the connection. client.Open(); return client; }