org.jgroups.protocols
Class UDP1_4.Connector
java.lang.Object
org.jgroups.protocols.UDP1_4.Connector
- UDP1_4
- Runnable
public static class UDP1_4.Connector
extends java.lang.Object
implements Runnable
Manages a multicast and unicast socket on a given interface (NIC). The multicast socket is used
to listen for incoming multicast packets, the unicast socket is used to (1) listen for incoming
unicast packets, (2) to send unicast packets and (3) to send multicast packets
protected byte[] | receive_buffer - Buffer for incoming unicast packets
|
protected org.jgroups.protocols.UDP1_4.Connector.SenderThread | sender_thread
|
protected Thread | t
|
Connector(NetworkInterface bind_interface, int local_bind_port, int port_range, int receive_buffer_size, int receive_sock_buf_size, int send_sock_buf_size, int ip_ttl, org.jgroups.protocols.Receiver receiver)
|
receive_buffer
protected byte[] receive_buffer
Buffer for incoming unicast packets
sender_thread
protected org.jgroups.protocols.UDP1_4.Connector.SenderThread sender_thread
Connector
public Connector(NetworkInterface bind_interface,
int local_bind_port,
int port_range,
int receive_buffer_size,
int receive_sock_buf_size,
int send_sock_buf_size,
int ip_ttl,
org.jgroups.protocols.Receiver receiver)
throws IOException
getBindInterface
public NetworkInterface getBindInterface()
getLocalAddress
public SocketAddress getLocalAddress()
send
public void send(DatagramPacket packet)
throws Exception
Sends a message using mcast_sock
start
public void start()
throws Exception
stop
public void stop()
Stops the connector. After this call, start() cannot be called, but a new connector has to
be created
toString
public String toString()
Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.