open62541 1.3.12
Open source implementation of OPC UA
Loading...
Searching...
No Matches
network.h File Reference

Go to the source code of this file.

Data Structures

struct  UA_ConnectionConfig
 
struct  UA_Connection
 
struct  UA_ServerNetworkLayer
 

Typedefs

typedef struct UA_Connection UA_Connection
 
typedef struct UA_SecureChannel UA_SecureChannel
 
typedef struct UA_ServerNetworkLayer UA_ServerNetworkLayer
 
typedef UA_Connection(* UA_ConnectClientConnection) (UA_ConnectionConfig config, UA_String endpointUrl, UA_UInt32 timeout, const UA_Logger *logger)
 

Enumerations

enum  UA_ConnectionState
 

Functions

void UA_Server_processBinaryMessage (UA_Server *server, UA_Connection *connection, UA_ByteString *message)
 
void UA_Server_removeConnection (UA_Server *server, UA_Connection *connection)
 

Typedef Documentation

◆ UA_Connection

typedef struct UA_Connection UA_Connection

Definition at line 19 of file network.h.

◆ UA_SecureChannel

typedef struct UA_SecureChannel UA_SecureChannel

Definition at line 22 of file network.h.

◆ UA_ServerNetworkLayer

typedef struct UA_ServerNetworkLayer UA_ServerNetworkLayer

Definition at line 25 of file network.h.

◆ UA_ConnectClientConnection

typedef UA_Connection(* UA_ConnectClientConnection) (UA_ConnectionConfig config, UA_String endpointUrl, UA_UInt32 timeout, const UA_Logger *logger)
Parameters
configthe connection config for this client
endpointUrlto where to connect
timeoutin ms until the connection try times out if remote not reachable
loggerthe logger to use

Definition at line 169 of file network.h.

Enumeration Type Documentation

◆ UA_ConnectionState

Enumerator
UA_CONNECTIONSTATE_CLOSED 
UA_CONNECTIONSTATE_OPENING 
UA_CONNECTIONSTATE_ESTABLISHED 

Definition at line 39 of file network.h.

Function Documentation

◆ UA_Server_processBinaryMessage()

void UA_Server_processBinaryMessage ( UA_Server * server,
UA_Connection * connection,
UA_ByteString * message )

Process a binary message (TCP packet).

The message can contain partial chunks. (TCP is a streaming protocol and packets may be split/merge during transport.) After processing, the message is freed with connection->releaseRecvBuffer.

◆ UA_Server_removeConnection()

void UA_Server_removeConnection ( UA_Server * server,
UA_Connection * connection )

The server internally cleans up the connection and then calls connection->free.