The accept() and close() methods provide the basic functionality of a server socket.
accept()
close()
public Socket accept() throws IOException public void close() throws IOException
A server socket can't be reopened after it's closed