Sprache

IpSecTransform.Close Method

Definition

Deactivate this IpSecTransform and free allocated resources.

[Android.Runtime.Register("close", "()V", "", ApiSince=28)]
public void Close();
[<Android.Runtime.Register("close", "()V", "", ApiSince=28)>]
abstract member Close : unit -> unit
override this.Close : unit -> unit

Implements

Attributes

Remarks

Remove the transform from applied sockets before closing it, or socket I/O errors result. Removing a transform from a socket does not deactivate it; closing an already closed transform is safe.

Deactivate this IpSecTransform and free allocated resources.

Deactivating a transform while it is still applied to a socket will result in errors on that socket. Make sure to remove transforms by calling IpSecManager#removeTransportModeTransforms. Note, removing an IpSecTransform from a socket will not deactivate it (because one transform may be applied to multiple sockets).

It is safe to call this method on a transform that has already been deactivated.

Java documentation for android.net.IpSecTransform.close().

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