79808182838485868788
} @Override public void setPort(int value) { if (listening) { throw new AlreadyListeningException(); } else { this.port = value; } }
103104105106107108109110111112
} @Override public void setListenAddress(InetAddress value) { if (listening) { throw new AlreadyListeningException(); } else { this.listenAddress = value; } }
112113114115116117118119120121122
} @Override public void startListening() { if (listeningSocket != null) { throw new AlreadyListeningException(); } createServerSocket(); listening = true;