Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
Android Documentation
TCPTransportConfig

Class TCPTransportConfig

Hierarchy

java.lang.Object
     com.smartdevicelink.transport.BaseTransportConfig

Package
com.smartdevicelink.transport

Overview

Container of TCP transport specific configuration.

Fields

Inherited Fields

From Class Fields
com.smartdevicelink.transport.BaseTransportConfig iHeartBeatTimeout

Constructors

TCPTransportConfig( int port, String ipAddress, boolean autoReconnect )

Constructor. Objects of this class must be created for known port and IP address value.

public TCPTransportConfig(int port,String ipAddress,boolean autoReconnect)

Constructor Parameters

port
Port for TCP connection.
ipAddress
IP address for TCP connection.
autoReconnect
Flag which must be set to true if tcp connection must be automatically reestablished in case of disconnection

Methods

getPort()

Gets value of Port.

public int getPort()

getIPAddress()

Gets value of IP address.

public java.lang.String getIPAddress()

getAutoReconnect()

Gets value of AutoReconnect

public boolean getAutoReconnect()

getTransportType()

Overridden abstract method which returns specific type of this transport configuration.

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

toString()

public java.lang.String toString()

Inherited Methods

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