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

Method start

ZezeJava/ZezeJava/src/main/java/Zeze/Net/Connector.java:237–254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

235 }
236
237 public void start() {
238 lock();
239 try {
240 // always try cancel reconnect task
241 if (reconnectTask != null) {
242 reconnectTask.cancel(false);
243 reconnectTask = null;
244 }
245 if (socket == null) {
246 if (null == url || url.isBlank())
247 socket = service.newClientSocket(hostNameOrAddress, port, userState, this);
248 else
249 socket = service.newWebsocketClient(url, userState, this);
250 }
251 } finally {
252 unlock();
253 }
254 }
255
256 public void stop() {
257 stop(null);

Callers 3

openRedoConnectionMethod · 0.95
StartMethod · 0.95
Start2Method · 0.95

Calls 5

newClientSocketMethod · 0.80
newWebsocketClientMethod · 0.80
lockMethod · 0.65
cancelMethod · 0.65
unlockMethod · 0.65

Tested by

no test coverage detected