public class TcpListener extends SocketListener
| Modifier and Type | Field and Description |
|---|---|
static boolean |
socketsInitialised |
fd| Constructor and Description |
|---|
TcpListener(String listenaddr,
int port) |
TcpListener(String listenaddr,
int port,
boolean localhostOnly,
SocketDescriptor sock,
boolean close_) |
| Modifier and Type | Method and Description |
|---|---|
TcpSocket |
accept() |
protected void |
finalize() |
int |
getMyPort() |
void |
shutdown() |
getFdpublic TcpListener(String listenaddr, int port, boolean localhostOnly, SocketDescriptor sock, boolean close_) throws Exception
Exceptionprotected void finalize()
throws Exception
public void shutdown()
throws Exception
shutdown in class SocketListenerExceptionpublic TcpSocket accept()
accept in class SocketListenerpublic int getMyPort()
Copyright © 2019. All rights reserved.