BrandonPotter / SimpleTCP

Straightforward .NET library to handle the repetitive tasks of spinning up and working with TCP sockets (client and server).
Apache License 2.0
363 stars 108 forks source link

How to send a message with tcp server to the tcp client in response? #59

Open stefano338 opened 5 years ago

mderaeve commented 5 years ago

In the data recieved event you can easely reply the client request: private void Server_DataReceived(object sender, Message e) { e.Reply(byte[]);