123456789101112131415161718192021222324252627282930313233 |
- #ifndef NETWORKLAYERTCP_H_
- #define NETWORKLAYERTCP_H_
- #ifdef WIN32
- #include "winsock2.h"
- #else
- #include <sys/mman.h>
- #include <sys/wait.h>
- #include <unistd.h>
- #include <sys/time.h>
- #endif
- #include "ua_server.h"
- struct NetworklayerTCP;
- typedef struct NetworklayerTCP NetworklayerTCP;
- #define BINARYCONNECTION_PROTOCOL_VERSION 0
- #define BINARYCONNECTION_MAX_CHUNK_COUNT 1
- #define BINARYCONNECTION_MAX_MESSAGE_SIZE 8192
- UA_StatusCode NetworklayerTCP_new(NetworklayerTCP **newlayer, UA_ConnectionConfig localConf, UA_UInt32 port);
- void NetworklayerTCP_delete(NetworklayerTCP *layer);
- UA_StatusCode NetworkLayerTCP_run(NetworklayerTCP *layer, UA_Server *server, struct timeval tv,
- void(*worker)(UA_Server*), UA_Boolean *running);
- #endif
|