Here you can find the source of unblockSocket(SelectableChannel... channels)
public static void unblockSocket(SelectableChannel... channels) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.IOException; import java.nio.channels.SelectableChannel; public class Main { public static void unblockSocket(SelectableChannel... channels) throws IOException { for (SelectableChannel ch : channels) { ch.configureBlocking(false); }//from ww w. jav a 2 s . c o m } }