Closed ghost closed 5 years ago
Hello
I'm trying to develop a small server/client chat with multiple rooms for a school project.
However for a certain reason, i need to know which client(simpletcpclient) sent the data in this thingy:
srv.DataReceived += (sender, msg) => { list.addclient(sender); }
So something like this code above, however the sender is returning as a SimpleTcpServer, i'm stuck and i'd apreciate if someone could lend me a hand here. Thanks for your time
resolved
Ok, sorry lads.
You can actually get the user by doing
msg.tcpclient
not really intuitive though!
Hello
I'm trying to develop a small server/client chat with multiple rooms for a school project.
However for a certain reason, i need to know which client(simpletcpclient) sent the data in this thingy:
So something like this code above, however the sender is returning as a SimpleTcpServer, i'm stuck and i'd apreciate if someone could lend me a hand here. Thanks for your time