| 构造器和说明 |
|---|
_SocketSession(Socket real) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
boolean |
equals(Object o) |
static XSession |
get(Socket real) |
<T> T |
getAttachment() |
InetSocketAddress |
getLocalAddress() |
Collection<XSession> |
getOpenSessions() |
InetSocketAddress |
getRemoteAddress() |
int |
hashCode() |
boolean |
isSecure() |
boolean |
isValid() |
XMethod |
method() |
String |
path() |
Object |
real() |
static XMessage |
receive(Socket socket,
SocketProtocol protocol)
接收数据
|
static void |
remove(Socket real) |
void |
send(byte[] message) |
void |
send(String message) |
void |
send(XMessage message) |
String |
sessionId() |
void |
setAttachment(Object obj) |
public _SocketSession(Socket real)
public static void remove(Socket real)
public void close()
throws IOException
close 在接口中 XSessionIOExceptionpublic InetSocketAddress getRemoteAddress()
getRemoteAddress 在接口中 XSessionpublic InetSocketAddress getLocalAddress()
getLocalAddress 在接口中 XSessionpublic void setAttachment(Object obj)
setAttachment 在接口中 XSessionpublic <T> T getAttachment()
getAttachment 在接口中 XSessionpublic Collection<XSession> getOpenSessions()
getOpenSessions 在接口中 XSessionpublic static XMessage receive(Socket socket, SocketProtocol protocol)
Copyright © 2020. All rights reserved.