Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Class SdlTransport

Hierarchy

java.lang.Object

Package
com.smartdevicelink.transport
All Known Subclasses
com.smartdevicelink.transport.BTTransport, com.smartdevicelink.transport.MultiplexTransport, com.smartdevicelink.transport.TCPTransport, com.smartdevicelink.transport.USBTransport

Constructors

SdlTransport( ITransportListener transportListener )

protected SdlTransport(ITransportListener transportListener)

Parameters

transportListener

Methods

getIsConnected()

public java.lang.Boolean getIsConnected()

handleReceivedPacket( SdlPacket packet )

protected void handleReceivedPacket(SdlPacket packet)

Parameters

packet

sendBytesOverTransport( SdlPacket packet )

protected abstract boolean sendBytesOverTransport(SdlPacket packet)

Parameters

packet

sendBytes( SdlPacket packet )

public boolean sendBytes(SdlPacket packet)

Parameters

packet

handleTransportConnected()

protected void handleTransportConnected()

handleTransportDisconnected( String info )

protected void handleTransportDisconnected(String info)

Parameters

info

handleTransportError( String message, Exception ex )

protected void handleTransportError(String message,Exception ex)

Parameters

message
ex

openConnection()

public abstract void openConnection() throws com.smartdevicelink.exception.SdlException

Throws

disconnect()

public abstract void disconnect()

getTransportType()

Abstract method which should be implemented by subclasses in order to return actual type of the transport.

public abstract com.smartdevicelink.transport.enums.TransportType getTransportType()

getBroadcastComment()

public abstract java.lang.String getBroadcastComment()

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section