Class BinaryMsgClient
java.lang.Object
com.tccc.kos.commons.core.client.binarymsg.BinaryMsgClient
Client for
BinaryMsg
protocol. Allows adapter simulators
to be written in java.- Since:
- 1.0
- Version:
- 2023-12-16
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBinaryMsgClient
(String blinkName, BinaryMsgIdentity identity, String server, int port) Create a new client. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addIface
(BinaryMsgClientIface iface) Add a new iface to the client.Get the byte order of the client.void
Send a message to the remote side of the connection.void
start()
Connect to the server and start processing messages.void
stop()
Disconnect from the server.
-
Field Details
-
DEFAULT_SERVER
- See Also:
-
DEFAULT_PORT
public static final int DEFAULT_PORT- See Also:
-
-
Constructor Details
-
BinaryMsgClient
Create a new client.- Parameters:
blinkName
- name of the blink connectionidentity
- the identity to send, null for defaultserver
- server address, null for localhostport
- server port, 0 for default
-
-
Method Details
-
getByteOrder
Get the byte order of the client. -
addIface
Add a new iface to the client. -
start
public void start()Connect to the server and start processing messages. -
stop
public void stop()Disconnect from the server. -
send
Send a message to the remote side of the connection.- Parameters:
msg
- the message to send- Throws:
IOException
-
getCoreIface
-