Added write(ByteBuffer) to Streamable interface and a first draft for a NioNetworkHandler

This commit is contained in:
2016-05-28 10:22:47 +02:00
parent b8f88b02d1
commit 08f2d5d6f1
27 changed files with 561 additions and 79 deletions

View File

@ -45,7 +45,6 @@ import static java.util.Collections.newSetFromMap;
* Handles all the networky stuff.
*/
public class DefaultNetworkHandler implements NetworkHandler, ContextHolder {
public final static int NETWORK_MAGIC_NUMBER = 8;
final Collection<Connection> connections = new ConcurrentLinkedQueue<>();
private final ExecutorService pool = Executors.newCachedThreadPool(