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

Method GetSocket

ZezeJava/ZezeJava/src/main/java/Zeze/Net/Service.java:251–253  ·  view source on GitHub ↗

只包含成功建立的连接:服务器Accept和客户端Connected的连接。 @param sessionId session id @return Socket Instance.

(long sessionId)

Source from the content-addressed store, hash-verified

249 * @return Socket Instance.
250 */
251 public @Nullable AsyncSocket GetSocket(long sessionId) {
252 return socketMap.get(sessionId);
253 }
254
255 public @Nullable AsyncSocket GetSocket() {
256 var sockets = socketMap.iterator();

Callers 15

ChoiceServerMethod · 0.45
ChoiceHashMethod · 0.45
RedirectAllMethod · 0.45
BindMethod · 0.45
UnBindMethod · 0.45
KeepAliveMethod · 0.45
OnCloseMethod · 0.45
ReportErrorMethod · 0.45
FindSendMethod · 0.45
ProcessBindRequestMethod · 0.45
ProcessSendRequestMethod · 0.45

Calls 4

getMethod · 0.65
hasNextMethod · 0.65
nextMethod · 0.65
iteratorMethod · 0.45

Tested by 15

reloginMethod · 0.36
logoutMethod · 0.36
loginMethod · 0.36
authMethod · 0.36
createRoleMethod · 0.36
getRoleMethod · 0.36
benchRoleTimerMethod · 0.36
reloginMethod · 0.36
logoutMethod · 0.36
loginMethod · 0.36
authMethod · 0.36
createRoleMethod · 0.36