networklayer_tcp.h 662 B

123456789101112131415161718192021
  1. #ifndef NETWORKLAYERTCP_H_
  2. #define NETWORKLAYERTCP_H_
  3. #include <time.h>
  4. #include "server/ua_server.h"
  5. struct NetworklayerTCP;
  6. typedef struct NetworklayerTCP NetworklayerTCP;
  7. #define BINARYCONNECTION_PROTOCOL_VERSION 0
  8. #define BINARYCONNECTION_MAX_CHUNK_COUNT 1
  9. #define BINARYCONNECTION_MAX_MESSAGE_SIZE 8192
  10. UA_Int32 NetworklayerTCP_new(NetworklayerTCP **newlayer, UA_ConnectionConfig localConf,
  11. UA_UInt32 port);
  12. void NetworklayerTCP_delete(NetworklayerTCP *layer);
  13. UA_Int32 NetworkLayerTCP_run(NetworklayerTCP *layer, UA_Server *server, struct timeval tv,
  14. void(*worker)(UA_Server*), UA_Boolean *running);
  15. #endif /* NETWORKLAYERTCP_H_ */