X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fo1%2FTcpServer.hpp;fp=src%2Fo1%2FTcpServer.hpp;h=0000000000000000000000000000000000000000;hb=b92944068f8a7b643b333515e424517db4192b61;hp=862b57eab8f32fe21f6326e39bcca7a06bdb9ef6;hpb=f01eb5471d34834e2ef1d8dbbfc4b2fe68403650;p=o-du%2Fl2.git diff --git a/src/o1/TcpServer.hpp b/src/o1/TcpServer.hpp deleted file mode 100644 index 862b57eab..000000000 --- a/src/o1/TcpServer.hpp +++ /dev/null @@ -1,57 +0,0 @@ -/******************************************************************************* -################################################################################ -# Copyright (c) [2020] [HCL Technologies Ltd.] # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); # -# you may not use this file except in compliance with the License. # -# You may obtain a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -################################################################################ -*******************************************************************************/ - -/* This file contains TcpServer class that listens for Netconf Alarm messages - on a TCP socket from ODU. It calls the AlarmManager functions for raising - or clearing the alarms based on the actions received -*/ - -#ifndef __TCP_SERVER_HPP__ -#define __TCP_SERVER_HPP__ -#include -#include - -using std::string; -#define BUFLEN 512 - -class TcpServer -{ - - private: - pthread_t mThreadId; - int mSock; - const int16_t mPort; - int readMessage(int); - int makeSocket(); - bool run(); - static void* task(void*); - - public: - bool start(); - bool wait(); - TcpServer(const uint16_t port) : mPort(port){}; - ~TcpServer(); - -}; - -#endif - - -/********************************************************************** - End of file -**********************************************************************/