All Questions
7 questions
2
votes
2
answers
1k
views
Server and Client programs for guessing game
I recently had to complete this for a school assignment and I really enjoyed it, but was hoping someone with experience in OO design or maybe just Java in general could have a look and point out ...
2
votes
1
answer
1k
views
Multi Threaded Server client communication where clients can signal the Server to shutdown
I have 3 classes: Server, Client, RequestHandler
It's about reading out commands and executing them
What the programm does:
1) The Server starts, opens a ServerSocket and starts listening for Clients ...
6
votes
1
answer
295
views
Deadlock watchdog in a server to defend against poorly written extensions
In the Red5 server we have no control over what implementers do with their applications. As such, we have attempted to implement code that would prevent them from causing bad things to happen.
This ...
0
votes
2
answers
255
views
Java background server class that might be called from ui thread
I have a server communicating over network interface. This server should run on a background thread, so that it does not block the ui thread. The ui thread starts and stops the server. Even starting ...
6
votes
1
answer
11k
views
Interrupting a ServerSocket#accept() and shutting down a multi-threaded socket server
I have some code in progress that does multi threaded communication via sockets. I am using a poison pill to shut it down. It is a local port number. Is there a better way to shut it down gracefully?
...
8
votes
1
answer
9k
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 ...
12
votes
3
answers
9k
views
Concurrent programming with a simple server
I am creating a simple server that accepts a int and returns the value received twice:
...