CotpClientOpen Method (String, Byte, Flags, Int32) |
Namespace: Demo3D.Net.Protocols
public static Client<IPacketIOService> Open( string host, byte[] tsap, Flags flags = default, int port = -1 )
public void SendMessage(string host, string tsap) { // Open a connection to a client. var client = CotpClient.Open(host, tsap); // Send a message. var message = BinaryTextEncoding.NullTerminatedASCII.GetBytes("hello"); client.IO.Write(message); // Close the connection. client.Close(); }