jdktools/modules/jpda/src/main/native/jdwp/common/transport/dt_socket/SocketTransport.cpp
static bool 
SetSocketBlockingMode(jdwpTransportEnv* env, hysocket_t sckt, bool isBlocked)
{
    JavaVM *vm = ((internalEnv*)env->functions->reserved1)->jvm;
    PORT_ACCESS_FROM_JAVAVM(vm);

    jint ret = hysock_set_nonblocking(sckt, isBlocked ? FALSE : TRUE);
    if (ret != 0){
	SetLastTranError(env, "socket error", GetLastErrorStatus(env));
        return false;
    }
    return true;

}
/**
 * This function enable/disables socket blocking mode 
 */
This function enable/disables socket blocking mode
This function enable / disables socket blocking mode
static bool 
SetSocketBlockingMode(jdwpTransportEnv* env, hysocket_t sckt, bool isBlocked)
{
    JavaVM *vm = ((internalEnv*)env->functions->reserved1)->jvm;
    PORT_ACCESS_FROM_JAVAVM(vm);
    jint ret = hysock_set_nonblocking(sckt, isBlocked ? FALSE : TRUE);
    if (ret != 0){
	SetLastTranError(env, "socket error", GetLastErrorStatus(env));
        return false;
    }
    return true;
}
static bool SetSocketBlockingMode ( jdwpTransportEnv * env , hysocket_t sckt , bool isBlocked ) { JavaVM * vm = ( ( internalEnv * ) env -> functions -> reserved1 ) -> jvm ; PORT_ACCESS_FROM_JAVAVM ( vm ) ; jint ret = hysock_set_nonblocking ( sckt , isBlocked ? FALSE : TRUE ) ; if ( ret != 0 ) { SetLastTranError ( env , " " , GetLastErrorStatus ( env ) ) ; return false ; } return true ; }
This function enable/disables socket blocking mode
This function enable / disables socket blocking mode