How can I send a string from php page to c# windows form using socket? Can you give me some example?

thanks for the help.
the problem is the opposite.
The c#application interact via serial port to a modbus device and do a lot of stuff (monitor temperature, save data to db, .....) all works ok.
The php app need to execute a command on the c#app. For example a user can stop monitor tempertaure sending a string "STOP" to c#app throught socket next i can parse the string and do the designated method.
I don't know is the better mode to do what i need.
Thank again

This article has been dead for over six months. Start a new discussion instead.