資源簡(jiǎn)介
代碼片段和文件信息
package?org.java_websocket;
import?java.net.InetSocketAddress;
import?java.nio.ByteBuffer;
import?java.nio.channels.NotYetConnectedException;
import?org.java_websocket.drafts.Draft;
import?org.java_websocket.framing.framedata;
import?org.java_websocket.framing.framedata.Opcode;
public?interface?WebSocket?{
public?enum?Role?{
CLIENT?SERVER
}
public?enum?READYSTATE?{
NOT_YET_CONNECTED?CONNECTING?OPEN?CLOSING?CLOSED;
}
/**
?*?The?default?port?of?WebSockets?as?defined?in?the?spec.?If?the?nullary
?*?constructor?is?used?DEFAULT_PORT?will?be?the?port?the?WebSocketServer
?*?is?binded?to.?Note?that?ports?under?1024?usually?require?root?permissions.
?*/
public?static?final?int?DEFAULT_PORT?=?80;
public?static?final?int?DEFAULT_WSS_PORT?=?443;
/**
?*?sends?the?closing?h
評(píng)論
共有 條評(píng)論