Edgar.A
Edgar.A

Reputation: 1383

Tcp client doesn't receive data

In Short -

Basic idea of what I'm doing in server : Ask prompt to ask for how many clients server will accept, create according number of threads which are waiting for socket connection and when communication starts.

On Client - connect to server, ask to input user's name start communicating by asking user to input their message.

Tried as well sending bytes directly to socket created for client, but still no success.

Client and Server projects/classes : https://gist.github.com/karosas/8ce2d537359d4e7c5e86

Upvotes: 0

Views: 762

Answers (1)

Lewis Taylor
Lewis Taylor

Reputation: 728

You arent flushing the streamwriter in the sendtoall method.

Upvotes: 1

Related Questions