7
votes
1answer
510 views

Multi-threaded server socket

I'm somewhat new to network programming. I have a server that uses Ubuntu, which needs to send data quickly to about 50 clients. As of now, I have about 50 concurrent connections (of course), and it ...
5
votes
2answers
9k views

TCP async socket server client communication

I develop my first async TCP socket server and client program in c# and would like to review the first parts of it. I like to get some information’s about smelly code that I missed and what I could ...
5
votes
1answer
243 views

Multi-threaded socket server high load

I'm trying to make a backend for QuizUp like application: user connects to a server, sends credentials and gets paired up with another user. After that server handles each pair, periodicaly sending ...
5
votes
1answer
2k views

Performant C# Socket server

I am creating a performant C# socket server. I'd like it to be able to accept as many simultaneous connections as possible. I've tested with 100 clients and all clients are fine. With 1000 however, ...
4
votes
1answer
225 views

Turning a Java console app into a server

I'm not familiar with Java at all, so I'd like to get some feedback on this piece of code. I made it by looking at a few Hello World-esque Java server examples, so it may have drawbacks I'm not ...
1
vote
1answer
139 views

C: File locking between server threads

I have written below code where the server is getting requests from clients on socket and creating a thread per client. Each client thread is then writing to a file which is common to all the threads. ...