MCPcopy Create free account
hub / github.com/e2wugui/zeze / getSocket

Method getSocket

ZezeJava/ZezeJava/src/main/java/Zeze/Net/TcpSocket.java:100–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98 }
99
100 public @Nullable Socket getSocket() {
101 SelectableChannel sc = getChannel();
102 return sc instanceof SocketChannel ? ((SocketChannel)sc).socket() : null;
103 }
104
105 public @Nullable SocketAddress getLocalAddress() { // 已经close的情况下返回null
106 try {

Callers

nothing calls this directly

Calls 1

getChannelMethod · 0.95

Tested by

no test coverage detected