Class BinaryMsgClient

java.lang.Object
com.tccc.kos.commons.core.client.binarymsg.BinaryMsgClient

public class BinaryMsgClient extends Object
Client for BinaryMsg protocol. Allows adapter simulators to be written in java.
Since:
1.0
Version:
2023-12-16
  • Field Details

  • Constructor Details

    • BinaryMsgClient

      public BinaryMsgClient(String blinkName, BinaryMsgIdentity identity, String server, int port)
      Create a new client.
      Parameters:
      blinkName - name of the blink connection
      identity - the identity to send, null for default
      server - server address, null for localhost
      port - server port, 0 for default
  • Method Details

    • getByteOrder

      public ByteOrder getByteOrder()
      Get the byte order of the client.
    • addIface

      public void addIface(BinaryMsgClientIface iface)
      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

      public void send(BinaryMsg msg) throws IOException
      Send a message to the remote side of the connection.
      Parameters:
      msg - the message to send
      Throws:
      IOException
    • getCoreIface

      public BinaryMsgClientIface getCoreIface()