C# TCP socket implementation not working, similar implemention in PHP does -


I have implemented a TCP customer in C # and PHP.

Both connect to a TCP server / read port and server reception message. It works and put both implementation responses. After that both the clients send the data to the server.

C # implementation throws an exception "System.IO.IOException: Read failure"

System.Net.Sockets.SocketException: Operation timed out. "On reading the next response to the server.

PHP implementation is working.

C # implementation stopped working a few hours ago, I

>

How are you ending a message in C #? I had an issue like this, before that "\ r" was sorted by adding the serial.

example

  byte [] outstream = encoding.ASCII.GetBytes (stuffToWrite +" \ r ");  
< / Div>

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -