public class CommunicationSocket
extends java.lang.Object
Constructor and Description |
---|
CommunicationSocket() |
Modifier and Type | Method and Description |
---|---|
int |
acceptListener(IReceiveListener listener,
Device receiverDevice)
This method is used to receive a message from another device.
|
int |
acceptListener(IReceiveListener listener,
Device receiverDevice,
TargetRestrictions targetRestrictions)
This method is used to receive a message from another device.
|
int |
sendMessage(AppProtocol protocol,
ProtocolInformation appInfo)
This method will send the ProtocolInformation object through network.
|
int |
stopListener() |
public int sendMessage(AppProtocol protocol, ProtocolInformation appInfo)
public int acceptListener(IReceiveListener listener, Device receiverDevice)
receiverDevice
- Used to determinate information about the receiver device.public int acceptListener(IReceiveListener listener, Device receiverDevice, TargetRestrictions targetRestrictions)
receiverDevice
- Used to determinate information about the receiver device.targetRestrictions
- Used to set restrictions about the receiver deviceTargetRestrictions
public int stopListener()