blob: 5da2ff332d37f71281cd234c247b3cdad8d7bb2c [file] [log] [blame]
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000-2020 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: IFW_HTTP_Server_Definitions.ttcn
// Description:
// Rev: <RnXnn>
// Prodnr: CNL 113 910
// Updated: 2020-03-06
// Contact: http://ttcn.ericsson.se
///////////////////////////////////////////////////////////////////////////////
module IFW_HTTP_Server_Definitions
{
import from HTTPmsg_Types all;
import from IPL4asp_PortType all;
import from IFW_Common all;
type component IFW_HTTP_Server_CT extends IFW_BASE_CT
{
var HttpServerContext ctx := c_HttpServerContext_empty;
var HTTPMessage msgToSend := c_HTTPMessage_empty;
var HTTPMessage lastReceived := c_HTTPMessage_empty;
port IPL4asp_PT IPL4_PCO;
}
type record HttpServerContext
{
integer serverConnId,
integer clientConnId,
charstring localHost,
integer localPort,
charstring remoteHost,
integer remotePort
}
with { extension "done" }
const HttpServerContext c_HttpServerContext_empty :=
{
serverConnId := -1,
clientConnId := -1,
localHost := "",
localPort := -1,
remoteHost := "",
remotePort := -1
}
const HTTPMessage c_HTTPMessage_empty :=
{
erronous_msg :=
{
client_id := omit,
msg := ""
}
}
}