java.lang.Object
org.newsclub.net.unix.AFVSOCKSocketImplExtensions
- All Implemented Interfaces:
AFSocketImplExtensions<AFVSOCKSocketAddress>
public final class AFVSOCKSocketImplExtensions
extends Object
implements AFSocketImplExtensions<AFVSOCKSocketAddress>
VSOCK-specific code that resides in the native library. To be used by
AFVSOCKSocket
and
AFVSOCKDatagramSocket
only.- Author:
- Christian Kohlschütter
-
Method Summary
-
Method Details
-
getLocalCID
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:
- The CID, or -1.
- Throws:
IOException
- on error.
-