@Override
    public synchronized void send(byte[] bytes) {
        try {
            outputStream.write(bytes);
        }
	catch (IOException e) {
	    notifyListeners(e);
        }            
    }