Implement the setting of blocking mode.
Parameters: blockingMode - true for blocking mode; falsefor non-blocking mode. throws: IOException - If some I/O exception occurred.
It registers current channel to the selector, then answer the selection
key. The channel must be open and the interest op set must be valid. If
the current channel is already registered to the selector, the method
only set the new interest op set; otherwise it will call the
register in selector, and add the relative
key to the key set of the current channel.