X2AppClient.h Source File

Simu5G: X2AppClient.h Source File
Simu5G
X2AppClient.h
1//
2// Simu5G
3//
4// Copyright (C) 2012-2021 Giovanni Nardini, Giovanni Stea, Antonio Virdis et al. (University of Pisa)
5// Copyright (C) 2022-2026 Giovanni Nardini, Giovanni Stea et al. (University of Pisa)
6//
7// This file is part of a software released under the license included in file
8// "license.pdf". Please read LICENSE and README files before using it.
9// The above files and the present reference are part of the software itself,
10// and cannot be removed from it.
11//
12
13#ifndef __X2APPCLIENT_H_
14#define __X2APPCLIENT_H_
15
16#include <inet/applications/sctpapp/SctpClient.h>
17#include "simu5g/common/LteCommon.h"
18
19namespace simu5g {
20
21using namespace omnetpp;
22
23class SctpAssociation;
24
28class X2AppClient : public inet::SctpClient
29{
30 // reference to the gates
31 cGate *x2ManagerOut_ = nullptr;
32
33 protected:
34
35 void initialize(int stage) override;
36 int numInitStages() const override { return inet::NUM_INIT_STAGES; }
37 void socketEstablished(inet::SctpSocket *socket, unsigned long int buffer) override;
38 void socketDataArrived(inet::SctpSocket *socket, inet::Packet *msg, bool urgent) override;
39};
40
41} //namespace
42
43#endif
44
Definition X2AppClient.h:29
Definition AlertReceiver.h:24