|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ByteSender
Sends a message through the radio. Its action verb is send
.
send
sends a ByteBuffer or a byte array starting at a specific offset
for length bytes.
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 |
---|
void send(com.sentilla.io.ByteBuffer buf)
buf
- the ByteBuffer to sendvoid send(byte[] buf, int offset, int length)
length
bytes from a byte array, starting at offset.
buf
- the byte array containing the data to transmitoffset
- the offset of the data in the byte arraylength
- the length in bytes of the data to transmitByteSender setSend(com.sentilla.io.ByteBuffer buf)
buf
- the ByteBuffer containing the data to be transmitted
this
ByteSender setSend(byte[] buf, int offset, int length)
buf
- byte array containing the data to transmitoffset
- the offset of the data in the arraylength
- the length in bytes of data to transmit
this
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |