Partager via


RtpStream.Associate(InetAddress, Int32) Method

Definition

Associates with a remote host.

[Android.Runtime.Register("associate", "(Ljava/net/InetAddress;I)V", "GetAssociate_Ljava_net_InetAddress_IHandler")]
public virtual void Associate (Java.Net.InetAddress? address, int port);
[<Android.Runtime.Register("associate", "(Ljava/net/InetAddress;I)V", "GetAssociate_Ljava_net_InetAddress_IHandler")>]
abstract member Associate : Java.Net.InetAddress * int -> unit
override this.Associate : Java.Net.InetAddress * int -> unit

Parameters

address
InetAddress

The network address of the remote host.

port
Int32

The network port of the remote host.

Attributes

Exceptions

if the address is not supported or the port is invalid.

if the stream is busy.

Remarks

Associates with a remote host. This defines the destination of the outgoing packets.

Java documentation for android.net.rtp.RtpStream.associate(java.net.InetAddress, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also