use of org.webpieces.nio.api.exceptions.NioException in project webpieces by deanhiller.
the class DatagramChannelImpl method bind.
/**
* @see org.webpieces.nio.api.channels.RegisterableChannel#bind(java.net.SocketAddress)
*/
public void bind(SocketAddress addr) {
try {
socket = new DatagramSocket(addr);
readerThread = new ReaderThread();
readerThread.start();
} catch (IOException e) {
throw new NioException(e);
}
}
Aggregations