java.lang.Object
public static final int STATE_NONE
public static final int STATE_LISTEN
public static final int STATE_CONNECTING
public static final int STATE_CONNECTED
public static final int STATE_ERROR
public static final java.lang.String ERROR_REASON_KEY
public static final byte REASON_SPP_ERROR
public static final byte REASON_NONE
public static final java.lang.String LOG
public static final java.lang.String DEVICE_NAME
public static final java.lang.String DEVICE_ADDRESS
protected int mState
protected final android.os.Handler handler
protected final com.smartdevicelink.transport.enums.TransportType transportType
protected com.smartdevicelink.transport.utl.TransportRecord transportRecord
protected java.lang.String connectedDeviceName
public java.lang.String connectedDeviceAddress
protected MultiplexBaseTransport(Handler handler,TransportType transportType)
protected synchronized void setState(int state)
protected synchronized void setState(int state,Bundle bundle)
public java.lang.String getAddress()
public java.lang.String getDeviceName()
Should only be called after a connection has been established
public com.smartdevicelink.transport.utl.TransportRecord getTransportRecord()
Return the current connection state.
public synchronized int getState()
public boolean isConnected()
public synchronized void stop()
protected abstract void stop(int state)
protected void stop(int state,byte error)
public abstract void write(byte[] out,int offset,int count)
From Class | Methods |
---|---|
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |