PkiPort.cc 1.87 KB
Newer Older
// This Test Port skeleton source file was generated by the
// TTCN-3 Compiler of the TTCN-3 Test Executor version CRL 113 200/5 R3A
// for U-ERICSSON\ethgry (ethgry@HU00078339) on Fri Aug 14 21:19:06 2015

// Copyright Ericsson Telecom AB 2000-2014

// You may modify this file. Complete the body of empty functions and
// add your member functions here.

#include "PkiPort.hh"

namespace LibItsPki__TestSystem {

PkiPort::PkiPort(const char *par_port_name)
	: PkiPort_BASE(par_port_name)
{

}

PkiPort::~PkiPort()
{

}

void PkiPort::set_parameter(const char * /*parameter_name*/,
	const char * /*parameter_value*/)
{

}

/*void PkiPort::Handle_Fd_Event(int fd, boolean is_readable,
	boolean is_writable, boolean is_error) {}*/

void PkiPort::Handle_Fd_Event_Error(int /*fd*/)
{

}

void PkiPort::Handle_Fd_Event_Writable(int /*fd*/)
{

}

void PkiPort::Handle_Fd_Event_Readable(int /*fd*/)
{

}

/*void PkiPort::Handle_Timeout(double time_since_last_call) {}*/

void PkiPort::user_map(const char * /*system_port*/)
{

}

void PkiPort::user_unmap(const char * /*system_port*/)
{

}

void PkiPort::user_start()
{

}

void PkiPort::user_stop()
{

}

Yann Garcia's avatar
Yann Garcia committed
void PkiPort::outgoing_send(const EtsiTs102941TypesEnrolment::InnerEcRequest& send_par)
Yann Garcia's avatar
Yann Garcia committed
void PkiPort::outgoing_send(const EtsiTs102941TypesEnrolment::InnerEcResponse& send_par)
{

}

void PkiPort::receiveMsg (const EtsiTs102941TypesEnrolment::InnerEcRequest& p_ind, const params& p_params) {
  loggers::get_instance().log_msg(">>> PkiPort::receive_msg: ", p_ind);
  // Sanity check
  if (!p_ind.is_bound()) {
    return;
  }

  incoming_message(p_ind);
}

void PkiPort::receiveMsg (const EtsiTs102941TypesEnrolment::InnerEcResponse& p_ind, const params& p_params) {
  loggers::get_instance().log_msg(">>> PkiPort::receive_msg: ", p_ind);
  // Sanity check
  if (!p_ind.is_bound()) {
    return;
  }

  incoming_message(p_ind);
}

} /* end of namespace */