Interface Link
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes linkintopen(int arg)Opens linkintreceive(byte[] buffer, int length)Receives and reads specified length of bytes over linkintreceive(byte[] buffer, int length, Pixy2.Checksum cs)Receives and reads specified length of bytes over linkintsend(byte[] buffer, int length)Writes and sends buffer over link
-
-
-
Method Detail
-
open
int open(int arg)
Opens link- Parameters:
arg- Link argument- Returns:
- Returns state
-
close
void close()
Closes link
-
receive
int receive(byte[] buffer, int length, Pixy2.Checksum cs)Receives and reads specified length of bytes over link- Parameters:
buffer- Byte buffer to return valuelength- Length of value to readcs- Checksum- Returns:
- Length of value read
-
receive
int receive(byte[] buffer, int length)Receives and reads specified length of bytes over link- Parameters:
buffer- Byte buffer to return valuelength- Length of value to read- Returns:
- Length of value read
-
send
int send(byte[] buffer, int length)Writes and sends buffer over link- Parameters:
buffer- Byte buffer to sendlength- Length of value to send- Returns:
- Length of value sent
-
-