Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 64063760eacf3452251c3d21f31cda721de70788 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
 * @author generated by eTrice
 *
 * Utils File of ActorClass ATcpServer
 *
 */

#ifndef _ROOM_BASIC_SERVICE_TCP_ATCPSERVER_UTILS_H_
#define _ROOM_BASIC_SERVICE_TCP_ATCPSERVER_UTILS_H_

#include "room/basic/service/tcp/ATcpServer.h"

/*
 * access macros for ports, operations and attributes
*/

/* simple event ports */
#define controlPort_connected() PTcpControlPort_connected(&self->constData->controlPort)
#define controlPort_disconnected() PTcpControlPort_disconnected(&self->constData->controlPort)
#define controlPort_error() PTcpControlPort_error(&self->constData->controlPort)
#define payloadPort_dataPackage(data) PTcpPayloadPort_dataPackage(&self->constData->payloadPort, data)

/* data receive ports */

/* data send ports */

/* saps */

/* replicated event ports */

/* services */

/* operations */
#define hasError() ATcpServer_hasError(self)
#define setErrorCode(value) ATcpServer_setErrorCode(self, value)

/* attributes */
#define lastError (self->lastError)
#define payloadRecvBuffer (self->payloadRecvBuffer)
#define server (self->server)

/* port operations */

#endif /* _ROOM_BASIC_SERVICE_TCP_ATCPSERVER_UTILS_H_ */

Back to the top