CotpClientOpen Method (String, String, Flags, Int32) |
Namespace: Demo3D.Net.Protocols
public static Client<IPacketIOService> Open( string host, string 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(); }