public abstract class AbstractSocketClient extends Object implements SocketClient
| Modifier and Type | Field and Description |
|---|---|
protected Connection |
connection |
protected boolean |
useTcp |
| Constructor and Description |
|---|
AbstractSocketClient(int senderTimeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection() |
protected void |
getConnection() |
protected boolean |
isOpen() |
boolean |
send(byte[] head,
byte[] chunk) |
abstract boolean |
send0(byte[] head,
byte[] chunk) |
void |
shutdown() |
void |
tryCloseConnWhenLongTime() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitopenConnectionprotected Connection connection
protected boolean useTcp
protected void getConnection()
public boolean send(byte[] head,
byte[] chunk)
send in interface SocketClientpublic abstract boolean send0(byte[] head,
byte[] chunk)
public void tryCloseConnWhenLongTime()
tryCloseConnWhenLongTime in interface SocketClientprotected boolean isOpen()
public void closeConnection()
public void shutdown()
shutdown in interface SocketClientCopyright © 2019. All rights reserved.