public class GvineLib
extends java.lang.Object
| Constructor and Description |
|---|
GvineLib()
Create Gvine API object
|
GvineLib(java.lang.String nodeId)
Create Gvine API object.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
recvData()
Receive data from gvine.
|
java.lang.String |
recvDataFile()
Receive data files via gvine.
|
byte[] |
recvDataShm()
Receive data from gvine.
|
void |
sendData(byte[] data)
Send data via Netcasting
|
void |
sendDataFile(java.lang.String fileName)
Send file via netcasting.
|
void |
sendDataFileDest(java.lang.String fileName,
java.lang.String destId)
Send file via gvine "unicast" or data direction.
|
void |
sendDataShm(byte[] data)
Send data via Netcasting.
|
void |
setNodeId(java.lang.String nodeId)
Set the identifier of Gvine instance to connect to.
|
public GvineLib()
public GvineLib(java.lang.String nodeId)
nodeId - Idenitfier of gvine instance to connect to.public void setNodeId(java.lang.String nodeId)
nodeId - The identifier to connect to.public void sendDataFile(java.lang.String fileName)
fileName - fileName including pathpublic void sendDataFileDest(java.lang.String fileName,
java.lang.String destId)
fileName - fileName including pathdestId - The destination identifierpublic void sendData(byte[] data)
data - data bytes to be sent.public void sendDataShm(byte[] data)
data - data bytes to be sent.public byte[] recvData()
public byte[] recvDataShm()
public java.lang.String recvDataFile()