string message = "device=camera;item=ois;command=start;\\r\\n";
byte bytes = Encoding.ASCII.GetBytes(message);
Socket s = null;
IPAddress hostAddress = null;
int conPort = 80;
hostAddress = IPAddress.Parse("127.0.0.1");
hostEndPoint = new IPEndPoint(hostAddress, 9103);
s = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
s.ReceiveTimeout = 1000*15;
Console.WriteLine("Unable to connect to host");
as my thought, the data should be sent out after sockct.send. but actually it don't work. the data been sent out after socket.close. i had been stuck by this 2 days. i had searched information using bing and google 2 days, nothing useful. it is suffering. it is appreciated for any suggestion. thanks.
pre> tag added - OriginalGriff
i want to best
modified 5-Jul-23 0:10am.