networklayer_tcp.h 829 B

1234567891011121314151617181920212223242526
  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 <time.h>
  8. #include "server/ua_server.h"
  9. struct NetworklayerTCP;
  10. typedef struct NetworklayerTCP NetworklayerTCP;
  11. #define BINARYCONNECTION_PROTOCOL_VERSION 0
  12. #define BINARYCONNECTION_MAX_CHUNK_COUNT 1
  13. #define BINARYCONNECTION_MAX_MESSAGE_SIZE 8192
  14. UA_Int32 NetworklayerTCP_new(NetworklayerTCP **newlayer, UA_ConnectionConfig localConf,
  15. UA_UInt32 port);
  16. void NetworklayerTCP_delete(NetworklayerTCP *layer);
  17. UA_Int32 NetworkLayerTCP_run(NetworklayerTCP *layer, UA_Server *server, struct timeval tv,
  18. void(*worker)(UA_Server*), UA_Boolean *running);
  19. #endif /* NETWORKLAYERTCP_H_ */