public class raSocketService
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected AbsThread |
mAcceptThread |
protected AbsThread |
mConnectedThread |
protected AbsThread |
mConnectThread |
static int |
STATE_CONNECTED |
static int |
STATE_CONNECTING |
static int |
STATE_LISTEN |
static int |
STATE_NONE |
| 构造器和说明 |
|---|
raSocketService(IDispatchListener handler) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
connect(java.lang.String address) |
void |
connected(java.net.Socket socket) |
protected void |
connectionFailed() |
protected void |
connectionLost() |
protected void |
dispatchRecv(int length,
byte[] buff) |
int |
getState() |
protected void |
setState(int state) |
void |
start() |
void |
stop() |
void |
write(byte[] out) |
public static final int STATE_NONE
public static final int STATE_LISTEN
public static final int STATE_CONNECTING
public static final int STATE_CONNECTED
protected AbsThread mAcceptThread
protected AbsThread mConnectThread
protected AbsThread mConnectedThread
public raSocketService(IDispatchListener handler)
public int getState()
protected void setState(int state)
public void start()
public void connect(java.lang.String address)
public void connected(java.net.Socket socket)
public void stop()
public void write(byte[] out)
protected void connectionFailed()
protected void connectionLost()
protected void dispatchRecv(int length,
byte[] buff)