shiffman/Most-Pixels-Ever-Processing

client wait if server hasn't started yet

Closed this issue · 3 comments

client wait if server hasn't started yet

1 second update loop

Hi, I tackled this in my fork by using a java.util.Timer that periodically checks if there is a connection. Which is also useful if connection to server goes down later, it can re-connect its self. Required some tweaking of TCPClient::start() in order to re-use the thread when re-connecting.

See here: https://github.com/radamchin/Most-Pixels-Ever/blob/master/eclipse/MostPixelsEver/src/mpe/client/TCPClient.java

thanks for the tips @radamchin.

closed via b96e889