Skip to content
Snippets Groups Projects
Commit 48f51192 authored by balaskoa's avatar balaskoa
Browse files

Copyright and License update to EPL 2.0 mod1


Signed-off-by: default avatarbalaskoa <Jeno.Balasko@ericsson.com>
parent 4f539b3c
No related branches found
No related tags found
No related merge requests found
......@@ -2,9 +2,7 @@
# of the TTCN-3 Test Executor version 1.7.pre0 build 2
# for Attila Balasko (ethbaat@ehubuux110) on Mon Jan 15 16:28:23 2007
# Copyright 2000-2006 Test Competence Center, Ericsson R & D, Hungary
# For trouble reporting use the tool MTTSMS.
# For TR writers guide please visit the web page: http://ttcn.ericsson.se
# Copyright Ericsson Telecom AB 2000-2018
# The following make commands are available:
# - make, make all Builds the executable test suite.
......
/******************************************************************************
* Copyright (c) 2000-2018 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
*
* Contributors:
* Eduard Czimbalmos - initial implementation and initial documentation
* Istvan Ovary
* Peter Dimitrov
* Balasko Jeno
* Gabor Szalai
******************************************************************************/
//
// File: HTTPmsg_MessageLen_Function.cc
// Description: HTTP Message length calculator
/******************************************************************************
* Copyright (c) 2000-2018 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
*
* Contributors:
* Eduard Czimbalmos - initial implementation and initial documentation
* Istvan Ovary
* Peter Dimitrov
* Balasko Jeno
* Gabor Szalai
******************************************************************************/
//
// File: HTTPmsg_MessageLen_Function.cc
// Description: HTTP Message length calculator
// Rev: R9B
// Prodnr: CNL 113 469
#include "HTTPmsg_PT.hh"
#include "HTTPmsg_Types.hh"
#include "HTTPmsg_MessageLen.hh"
using namespace HTTPmsg__Types;
using namespace HTTPmsg__PortType;
namespace HTTPmsg__MessageLen {
INTEGER f__HTTPMessage__len(OCTETSTRING const& stream) {
HTTPMessage msg;
TTCN_Buffer *buf_p = new TTCN_Buffer() ;
buf_p->put_os(stream);
int buf_len = buf_p->get_read_len();
if( buf_len > 0)
{
if(f_HTTP_decodeCommon(buf_p, msg, true, false, NULL, NULL))
{
buf_len -= buf_p->get_read_len();
}
else
buf_len = -1;
} else buf_len = -1;
delete buf_p;
return buf_len;
}
}
// Prodnr: CNL 113 469
#include "HTTPmsg_PT.hh"
#include "HTTPmsg_Types.hh"
#include "HTTPmsg_MessageLen.hh"
using namespace HTTPmsg__Types;
using namespace HTTPmsg__PortType;
namespace HTTPmsg__MessageLen {
INTEGER f__HTTPMessage__len(OCTETSTRING const& stream) {
HTTPMessage msg;
TTCN_Buffer *buf_p = new TTCN_Buffer() ;
buf_p->put_os(stream);
int buf_len = buf_p->get_read_len();
if( buf_len > 0)
{
if(f_HTTP_decodeCommon(buf_p, msg, true, false, NULL, NULL))
{
buf_len -= buf_p->get_read_len();
}
else
buf_len = -1;
} else buf_len = -1;
delete buf_p;
return buf_len;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment