Wederom verder gewerkt aan de items in de TODO lijst.

This commit is contained in:
Bram Veenboer
2011-02-23 09:19:12 +00:00
parent ac1480d24c
commit c0dbab44a2
7 changed files with 29 additions and 22 deletions

View File

@@ -8,13 +8,13 @@ import pm.exception.device.DeviceInitialiseException;
public class LanTextDevice extends Device {
static final int PORT = 1234;
protected ServerSocket socket;
protected ServerSocket server;
protected SocketListener socketListener;
public void initialise() throws DeviceInitialiseException {
try {
socket = new ServerSocket(PORT);
socketListener = new SocketListener(socket);
server = new ServerSocket(PORT);
socketListener = new SocketListener(server);
socketListener.start();
} catch (IOException e) {
throw new DeviceInitialiseException();