SrtSocket
This class represents a SRT socket. To avoid creating an unresponsive UI, don't perform SRT network operations on the main thread. Once it has been called, you must release Srt context with Srt.cleanUp when application leaves.
Constructors
Deprecated version of SrtSocket constructor. Argument is ignored. Also, it crashes on old Android version (where StandardProtocolFamily does not exist).
Creates an SRT socket.
Types
This interface is used by a client SrtSocket to notify SRT socket events.
This interface is used by a server SrtSocket to notify SRT socket events.
Properties
Client listeners
Gets the time when SRT socket was open to establish a connection.
Retrieves the remote InetAddress to which the socket is connected.
Tests if the SRT socket is connected.
Extracts the InetAddress to which the socket was bound.
Retrieves the remote InetSocketAddress to which the SRT socket is connected.
Sets/gets the value of the SockOpt.RCVBUF option for this SRT socket.
Set/get detailed reason for a failed connection attempt.
Tests if SockOpt.REUSEADDR is enabled.
Sets/gets the value of the SockOpt.SNDBUF option for this SRT socket.
Server listeners
Extracts the InetSocketAddress to which the socket was bound.
Gets the current status of the socket.
Returns setting for SockOpt.LINGER.
Functions
Accepts a pending connection.
Binds the socket to a local address.
Connects a socket to a specified address and port.
Returns an input stream for this socket.
Returns an output stream for this socket.
Gets the value of the given socket option.
Performs a rendezvous connection.
Performs a rendezvous connection.
Sends a message to a remote party.
Sets the value of the given socket option.