public class Connection extends Object
| 构造器和说明 |
|---|
Connection(Server server) |
Connection(String host,
int port,
String pass,
int soTimeout,
int soBuffer) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
String |
getHost() |
int |
getPort() |
<T> T |
getProperty(String propName) |
boolean |
hasProperty(String propName) |
boolean |
isAvailable() |
Response |
receivePacket() |
void |
removeProperty(String propName) |
void |
send(byte[] bytes) |
void |
setProperty(String propName,
Object propValue) |
String |
toString() |
public Connection(Server server)
public String getHost()
public int getPort()
public <T> T getProperty(String propName)
public boolean hasProperty(String propName)
public void removeProperty(String propName)
public void send(byte[] bytes)
public Response receivePacket()
public void close()
throws IOException
IOExceptionpublic boolean isAvailable()
Copyright © 2019. All rights reserved.