Added initial app to run MME. Starting to add S1APP class.

This commit is contained in:
Pedro Alvarez 2017-10-09 18:36:40 +01:00
parent 136e3a2697
commit 429c32cd5a
5 changed files with 113 additions and 6 deletions

View File

@ -40,9 +40,9 @@ namespace srsepc{
class mme
{
public:
mme* get_instance(void);
static mme* get_instance(void);
void cleanup(void);
static void cleanup(void);
private:

33
srsepc/hdr/mme/s1ap.h Normal file
View File

@ -0,0 +1,33 @@
/**
*
* \section COPYRIGHT
*
* Copyright 2013-2017 Software Radio Systems Limited
*
* \section LICENSE
*
* This file is part of srsLTE.
*
* srsLTE is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* srsLTE is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* A copy of the GNU Affero General Public License can be found in
* the LICENSE file in the top-level directory of this distribution
* and at http://www.gnu.org/licenses/.
*
*/
class s1ap
{
public:
s1ap();
virtual ~s1ap();
int enb_listen();
}

View File

@ -1,7 +1,43 @@
/**
*
* \section COPYRIGHT
*
* Copyright 2013-2017 Software Radio Systems Limited
*
* \section LICENSE
*
* This file is part of srsLTE.
*
* srsUE is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* srsUE is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* A copy of the GNU Affero General Public License can be found in
* the LICENSE file in the top-level directory of this distribution
* and at http://www.gnu.org/licenses/.
*
*/
#include <iostream>
#include <boost/program_options.hpp>
#include "mme/mme.h"
using namespace std;
using namespace srsepc;
namespace bpo = boost::program_options;
int
main (int argc,char * argv[] )
{
//signal(SIGINT, sig_int_handler);
mme *mme = mme::get_instance();
cout << "--- Software Radio Systems EPC MME ---" << endl << endl;
return 0;
}

View File

@ -32,6 +32,15 @@ namespace srsepc{
mme* mme::instance = NULL;
boost::mutex mme_instance_mutex;
mme::mme()
{
return;
}
mme::~mme()
{
return;
}
mme*
mme::get_instance(void)
@ -43,10 +52,6 @@ mme::get_instance(void)
return(instance);
}
mme::mme()
{
}
void
mme::cleanup(void)
{

33
srsepc/src/mme/s1ap.cc Normal file
View File

@ -0,0 +1,33 @@
/**
*
* \section COPYRIGHT
*
* Copyright 2013-2017 Software Radio Systems Limited
*
* \section LICENSE
*
* This file is part of srsLTE.
*
* srsLTE is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* srsLTE is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* A copy of the GNU Affero General Public License can be found in
* the LICENSE file in the top-level directory of this distribution
* and at http://www.gnu.org/licenses/.
*
*/
namespace srsepc{
s1ap::s1ap()
{
}
}//namespace srsepc