text: #include "littleGift.h"
  #include "seeker/logger.h"
  #include "seeker/loggerApi.h"
  #include <iostream>
  #include <string>
  #include "jrtplib3/rtpsession.h"
  
  using std::cout;
  using std::endl;
  using std::string;
  
  
  extern void startClient(const string& targetIp, int port);
  extern void startServer(int port);
  extern int rtpExample1(int argc, char* argv[]);
  extern int recevieAndSave();
  extern int recevieAndPlay();
  extern void ffplay();
  
  namespace {
  
    void testUdpServer(){
      startServer(54321);
    }
  
    void testUdpClient(){
      startClient("127.0.0.1", 54321);
    }
  
  }
  
  
  void udpTest(int argc, char* argv[]) {
  
    if( argc == 2 ) {
      const string cmd = argv[1];
      if(cmd == "server") {
        testUdpServer();
      } else if ( cmd == "client") {
        testUdpClient();
      } else {
        cout << "input error: " << cmd << endl;
      }
    } else {
      cout << "input error." << endl;
    }
  
    I_LOG("DONE.");
  
  
  }
  
  
  
  int main(int argc, char* argv[]) {
    seeker::Logger::init();
  
    //udpTest(argc, argv);
    //rtpExample1(argc, argv);
    //recevieAndSave();
    recevieAndPlay();
    //ffplay();
  
    cout << "main out" << endl;
    return 0;
  
  }
  