com.sentilla.net
Interface ByteSender

All Superinterfaces:
Action, ByteMessage
All Known Implementing Classes:
ByteSender

public interface ByteSender
extends ByteMessage

Sends a message through the radio. Its action verb is send.


Field Summary
 
Fields inherited from interface com.sentilla.system.Action
DONE, ERROR, IDLE, PENDING
 
Method Summary
 void send(byte[] buf, int offset, int length)
          Transmits length bytes from a byte array, starting at offset.
 void send(com.sentilla.io.ByteBuffer buf)
          Transmits a ByteBuffer.
 ByteSender setSend(byte[] buf, int offset, int length)
          Set the byte array containing the data to transmit.
 ByteSender setSend(com.sentilla.io.ByteBuffer buf)
          Set the ByteBuffer containing data to be transmitted.
 
Methods inherited from interface com.sentilla.net.ByteMessage
getPort, getTimestamp, setPort
 
Methods inherited from interface com.sentilla.system.Action
block, block, cancel, getActionState, isDone, submit
 

Method Detail

send

void send(com.sentilla.io.ByteBuffer buf)
Transmits a ByteBuffer.

Parameters:
buf - the ByteBuffer to send

send

void send(byte[] buf,
          int offset,
          int length)
Transmits length bytes from a byte array, starting at offset.

Parameters:
buf - the byte array containing the data to transmit
offset - the offset of the data in the byte array
length - the length in bytes of the data to transmit

setSend

ByteSender setSend(com.sentilla.io.ByteBuffer buf)
Set the ByteBuffer containing data to be transmitted.

Parameters:
buf - the ByteBuffer containing the data to be transmitted
Returns:
this

setSend

ByteSender setSend(byte[] buf,
                   int offset,
                   int length)
Set the byte array containing the data to transmit.

Parameters:
buf - byte array containing the data to transmit
offset - the offset of the data in the array
length - the length in bytes of data to transmit
Returns:
this


Copyright © 2007 Sentilla Corporation. All Rights Reserved.