public class NetBIOSSelector extends Object
Selector type class for NetBIOSSocket objects. Groups a set of sockets to wait for events on.
Constructor and Description |
---|
NetBIOSSelector()
Default constructor
|
NetBIOSSelector(int initSize)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the NetBIOS selector
|
NetBIOSSelectionKey |
deregisterSocket(NetBIOSSocket socket)
Remove a socket from this selector
|
NetBIOSSelectionKey |
getSelectionKey(Integer key)
Return the selection key for the specified key
|
Set<Integer> |
keys()
Return the full selection key list
|
protected NetBIOSSelectionKey |
registerSocket(NetBIOSSocket socket,
int ops)
Register a socket with this selector
|
int |
select()
Wait for events to trigger on one or more sockets
|
Set<NetBIOSSelectionKey> |
selectedKeys()
Return the selected keys from the last select
|
public NetBIOSSelector()
public NetBIOSSelector(int initSize)
initSize
- intprotected final NetBIOSSelectionKey registerSocket(NetBIOSSocket socket, int ops) throws IOException, IllegalBlockingModeException
socket
- NetBIOSSocketops
- intIOException
IllegalBlockingModeException
public final NetBIOSSelectionKey deregisterSocket(NetBIOSSocket socket) throws IOException
socket
- NetBIOSSocketIOException
public final int select() throws WinsockNetBIOSException
WinsockNetBIOSException
public final void close()
public final NetBIOSSelectionKey getSelectionKey(Integer key)
key
- Integerpublic final Set<NetBIOSSelectionKey> selectedKeys()
Copyright © 2005–2018 Alfresco Software. All rights reserved.