File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/main/java/org/java_websocket Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 11package org .java_websocket ;
22
33import java .net .InetSocketAddress ;
4+ import java .net .Socket ;
45import java .nio .ByteBuffer ;
56import java .nio .channels .NotYetConnectedException ;
67
@@ -72,8 +73,16 @@ public enum Role {
7273
7374 public abstract void startHandshake ( ClientHandshakeBuilder handshakedata ) throws InvalidHandshakeException ;
7475
76+ /**
77+ * @returns null when connections is closed
78+ * @see Socket#getRemoteSocketAddress()
79+ */
7580 public abstract InetSocketAddress getRemoteSocketAddress ();
7681
82+ /**
83+ * @returns null when connections is closed
84+ * @see Socket#getLocalSocketAddress()
85+ */
7786 public abstract InetSocketAddress getLocalSocketAddress ();
7887
7988 public abstract boolean isConnecting ();
You can’t perform that action at this time.
0 commit comments