public class TCPTransportManager extends TransportManagerBase
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TCPTransportManager.TCPHandler |
TransportManagerBase.TransportEventListener| Constructor and Description |
|---|
TCPTransportManager(TCPTransportConfig config,
TransportManagerBase.TransportEventListener transportEventListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(long sessionId) |
TransportRecord |
getTransportRecord(TransportType transportType,
String address)
Retrieve a transport record with the supplied params
|
boolean |
isConnected(TransportType transportType,
String address)
Check to see if a transport is connected.
|
void |
resetSession()
Deprecated.
|
void |
sendPacket(SdlPacket packet) |
void |
start() |
getConnectedTransports, isHighBandwidthAvailable, requestNewSession, requestSecondaryTransportConnection, updateTransportConfigpublic TCPTransportManager(TCPTransportConfig config, TransportManagerBase.TransportEventListener transportEventListener)
public void start()
start in class TransportManagerBasepublic void close(long sessionId)
close in class TransportManagerBase@Deprecated public void resetSession()
public boolean isConnected(TransportType transportType, String address)
TransportManagerBaseisConnected in class TransportManagerBasetransportType - the transport to have its connection status returned. If `null` is
passed in, all transports will be checked and if any are connected a
true value will be returned.address - the address associated with the transport type. If null, the first transport
of supplied type will be used to return if connected.public TransportRecord getTransportRecord(TransportType transportType, String address)
TransportManagerBasegetTransportRecord in class TransportManagerBasetransportType - the transport to have its connection status returned.address - the address associated with the transport type. If null, the first transport
of supplied type will be returned.public void sendPacket(SdlPacket packet)
sendPacket in class TransportManagerBase