Top Description Fields Constructors Methods
org.newsclub.net.unix

public final Class AFVSOCKSocketImplExtensions

extends Object
implements AFSocketImplExtensions<AFVSOCKSocketAddress>
Class Inheritance
All Implemented Interfaces
org.newsclub.net.unix.AFSocketImplExtensions
Imports
java.io.IOException

VSOCK-specific code that resides in the native library. To be used by AFVSOCKSocket and AFVSOCKDatagramSocket only.
Author
Christian Kohlschütter

Field Summary

Modifier and TypeField and Description
private final AncillaryDataSupport

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The CID, or -1.
getLocalCID
()

Returns the local CID.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ancillaryDataSupportback to summary
private final AncillaryDataSupport ancillaryDataSupport
Annotations
@SuppressWarnings:unused

Constructor Detail

AFVSOCKSocketImplExtensionsback to summary
pack-priv AFVSOCKSocketImplExtensions(AncillaryDataSupport ancillaryDataSupport)

Method Detail

getLocalCIDback to summary
public int getLocalCID() throws IOException

Returns the local CID. If the system does not support vsock, or status about support cannot be retrieved, -1 (AFVSOCKSocketAddress#VMADDR_CID_ANY) is returned. The value may be cached upon initialization of the library.

Returns:int

The CID, or -1.

Exceptions
IOException:
on error.