networklayer_tcp.h 811 B

12345678910111213141516171819202122232425
  1. /*
  2. * This work is licensed under a Creative Commons CCZero 1.0 Universal License.
  3. * See http://creativecommons.org/publicdomain/zero/1.0/ for more information.
  4. */
  5. #ifndef NETWORKLAYERTCP_H_
  6. #define NETWORKLAYERTCP_H_
  7. #include "server/ua_server.h"
  8. struct NetworklayerTCP;
  9. typedef struct NetworklayerTCP NetworklayerTCP;
  10. #define BINARYCONNECTION_PROTOCOL_VERSION 0
  11. #define BINARYCONNECTION_MAX_CHUNK_COUNT 1
  12. #define BINARYCONNECTION_MAX_MESSAGE_SIZE 8192
  13. UA_Int32 NetworklayerTCP_new(NetworklayerTCP **newlayer, UA_ConnectionConfig localConf,
  14. UA_UInt32 port);
  15. void NetworklayerTCP_delete(NetworklayerTCP *layer);
  16. UA_Int32 NetworkLayerTCP_run(NetworklayerTCP *layer, UA_Server *server, struct timeval tv,
  17. void(*worker)(UA_Server*), UA_Boolean *running);
  18. #endif /* NETWORKLAYERTCP_H_ */