Snapshot of implementation of limited functionality

This commit is contained in:
2015-06-11 22:44:09 +01:00
parent ecc4ea198f
commit 0178f0ec8d
23 changed files with 703 additions and 185 deletions

View File

@@ -0,0 +1,19 @@
package com.github.boukefalos.tm1638.server;
import java.nio.channels.SocketChannel;
import base.server.channel.TcpServerClient;
public class TM1638TcpClient extends TcpServerClient {
protected TM1638TcpServer server;
public TM1638TcpClient(TM1638TcpServer server, SocketChannel socketChannel, Integer bufferSize) {
super(server, socketChannel, bufferSize);
this.server = server;
}
public void receive(byte[] buffer) {
System.out.println("serverClient.receive() " + new String(buffer).trim());
server.receive(buffer);
}
}