lejos.nxt.remote
Interface NXTCommRequest

All Known Implementing Classes:
NXTComm

public interface NXTCommRequest

Interface that all NXTComm implementation classes must implement for low-level communication with the NXT.


Method Summary
 void close()
          Close the connection
 byte[] sendRequest(byte[] message, int replyLen)
          Send an LCP message to the NXT and receive a reply
 

Method Detail

close

void close()
           throws IOException
Close the connection

Throws:
IOException

sendRequest

byte[] sendRequest(byte[] message,
                   int replyLen)
                   throws IOException
Send an LCP message to the NXT and receive a reply

Parameters:
message - the LCP message
replyLen - the reply length expected
Returns:
the reply
Throws:
IOException