protect

abstract fun protect(socket: Int): Boolean

Call this method to protect the socket from VPN.

Parameters

socket

The file descriptor of the socket to protect. @#return true if the socket is protected, false otherwise.


abstract fun protect(socket: Socket): Boolean

Call this method to protect the socket from VPN.

Parameters

socket

The Socket to protect. @#return true if the socket is protected, false otherwise.