|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
DNS message connection interface, abstract class for DNS connections.
Method Summary | |
boolean |
Connect()
Attempt to connect to the first server available in the pool of servers. |
void |
Disconnect()
Close the connection. |
boolean |
hasNext()
Returns true if the iteration has more elements. |
java.lang.Object |
next()
Returns the next element in the interation. |
byte[] |
receiveMessage()
Receive a over the connection. |
void |
reset()
Puts the iterator in its initial state. |
boolean |
sendMessage(byte[] pDat)
Send a message over the connection. |
java.lang.String |
toString()
Returns a string representation of the internal state, mostly for debugging purposes. |
Method Detail |
public void reset()
public boolean hasNext()
public java.lang.Object next() throws java.util.NoSuchElementException
public boolean Connect() throws java.lang.IllegalStateException
Disconnect()
public void Disconnect() throws java.lang.IllegalStateException
Connect()
public boolean sendMessage(byte[] pDat) throws java.lang.IllegalStateException
receiveMessage()
public byte[] receiveMessage() throws java.lang.IllegalStateException
sendMessage(byte[])
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |