elitefuture

Results 6 comments of elitefuture

server.BroadCastLine(string msg); and make sure all of the clients are connected to the same ip and port, use a local ip for testing

I just ended up setting the string to the substring of the message - whatever, or if it's the same characters, just remove them if it ends with the characters.

don't send data periodically, instead just use the built in timeout feature on a client to check, set the timeout once the client connects.

I have tried to do as you said if (server.IsStarted) server.Broadcast(new byte[] { 95 }); then ignoring the byte 95 if the byte array is 1, but the counter still...

I have figured out that instead of broadcasting data, you should instead just set a timeout for each client, and let the client reconnect when needed

` server.ClientConnected += serverJoin; //when the server is made along with DataRecieved` private void serverJoin(object sender, TcpClient e) { //Your server join code goes here if you have any e.Client.ReceiveTimeout...