aleph.comm.udp
Class AutoConnection

java.lang.Object
  |
  +--aleph.comm.udp.Connection
        |
        +--aleph.comm.udp.AutoConnection

public class AutoConnection
extends Connection

An AutoConnection is a connection betwen a PE and itself.


Fields inherited from class aleph.comm.udp.Connection
handler, messagesSent
 
Constructor Summary
AutoConnection()
          Constructor.
 
Method Summary
protected  Message receive()
          Blocking method that pulls in the next message.
 void send(Message message)
          Send'em a message.
 
Methods inherited from class aleph.comm.udp.Connection
close, deliver, flush, ping, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoConnection

public AutoConnection()
Constructor.
Parameters:
destination - partner's address
Method Detail

send

public void send(Message message)
          throws java.io.IOException
Send'em a message.
Parameters:
message - what to send
Throws:
java.io.IOException - something's wrong
Overrides:
send in class Connection

receive

protected Message receive()
                   throws java.io.IOException
Blocking method that pulls in the next message.
Overrides:
receive in class Connection