| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.comm.udp
|
+--com.newstep.solid.comm.udp.UDPChannel
public class UDPChannel
Implements:
IOHandler
Links:
Kernel Association Association Link
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Kernel Association Association Link
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Kernel Association Association Link
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Implementation Implementation Link
Generalization Generalization Link
| Field Summary |
|
|
String |
|
private ByteBuffer |
|
private DatagramChannel |
|
private int |
|
|
|
|
|
private String |
|
|
|
| Method Summary |
public void |
|
public DatagramChannel |
|
public int |
|
|
|
|
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public String |
|
public void |
|
private ByteBuffer buffer
Multiplicity:
1
private DatagramChannel datagramChannel
Multiplicity:
1
private int interestOps
Multiplicity:
1
Multiplicity:
1
Multiplicity:
1
String name
private String name
Multiplicity:
1
Multiplicity:
1
public void close ()
Channel interface. Closes the chanel
Throws:
ChannelException
public DatagramChannel getDatagram ()
public int getInterestedOps ()
Returns the inetersted operations for this handler
Returns the local address
Returns the remote address
Initializes a UDP channel.
Parameters:
muxi
channel
address
localAddr
buff
public void onAccept (SelectionKey key)
Not valid for UDP channel
Throws:
ChannelException
public void onClosed (SelectableChannel channel)
public void onConnect ()
Channel interface. Not valid for UDP
Throws:
ChannelException
public void onDone ()
public void onRead (SelectionKey key)
Channel interface. Receives the datagram
Throws:
ChannelException
public void onWrite (SelectionKey key)
Channel interface. Sends the datagram
Throws:
ChannelException
public void open ()
Channel interface. Opens the channel and registers it with the selector
Throws:
ChannelException
public void passMessage (Message message)
Passes the message up to the channel listener
Parameters:
message
public void setLocalAddress (IPAddress localAddress)
Assigns the local address of the channel
Parameters:
localAddress
public void setName (String name)
Assigns the name of the channel
Parameters:
name
public String toString ()
public void write (Message message)
Channel interface. Puts the message into the writing queue and registers
the OP_WRITE with the mux
Throws:
ChannelException
| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|