blob: 0f11d6c79b2c5434abbabf97ac04dbd63cc7b029 [file] [log] [blame]
///////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2000-2019 Ericsson Telecom AB
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v2.0
// which accompanies this distribution, and is available at
// https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
///////////////////////////////////////////////////////////////////////////////
//
// File: IP_Daemon_Dynamic_with_StartupCallback.ttcn
// Description: IPDD behaviour with Startup callback
// Rev: <RnXnn>
// Prodnr: CNL 113 739
// Updated: 2012-05-04
// Contact: http://ttcn.ericsson.se
module IP_Daemon_Dynamic_with_StartupCallback
{
//=========================================================================
// Import Part
//=========================================================================
import from IP_Daemon_Dynamic all;
import from IP_Daemon_Dynamic_Types all;
import from IP_Daemon_Dynamic_Interface_Definitions all;
import from IPL4asp_Types all;
//=========================================================================
// Functions
//=========================================================================
function f_SendAutoStartup(in integer connectionIndex, out ASP_Send ipMsg)
runs on IPDD_CT
return boolean {
log("connectionIndex: ", connectionIndex);
ipMsg := {
vc_connectionRuntimeAttributesList[connectionIndex].socket,
{ udp:={} },
'BBCCDDEE'O
}
return true;
}
//=========================================================================
// Testcases
//=========================================================================
testcase tc_IPDD_with_StartupCallback() runs on IPDD_CT {
// register my auto startup function
f_RegisterAutoStartupFunction(refers(f_SendAutoStartup));
// run the IP Daemon's main function
f_IPDD();
}
//=========================================================================
// Control
//=========================================================================
control {
execute(tc_IPDD_with_StartupCallback());
}
}