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 @@ ...@@ -2,9 +2,7 @@
# of the TTCN-3 Test Executor version 1.7.pre0 build 2 # 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 # for Attila Balasko (ethbaat@ehubuux110) on Mon Jan 15 16:28:23 2007
# Copyright 2000-2006 Test Competence Center, Ericsson R & D, Hungary # Copyright Ericsson Telecom AB 2000-2018
# For trouble reporting use the tool MTTSMS.
# For TR writers guide please visit the web page: http://ttcn.ericsson.se
# The following make commands are available: # The following make commands are available:
# - make, make all Builds the executable test suite. # - make, make all Builds the executable test suite.
......
/****************************************************************************** /******************************************************************************
* Copyright (c) 2000-2018 Ericsson Telecom AB * Copyright (c) 2000-2018 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0 * are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
* *
* Contributors: * Contributors:
* Eduard Czimbalmos - initial implementation and initial documentation * Eduard Czimbalmos - initial implementation and initial documentation
* Istvan Ovary * Istvan Ovary
* Peter Dimitrov * Peter Dimitrov
* Balasko Jeno * Balasko Jeno
* Gabor Szalai * Gabor Szalai
******************************************************************************/ ******************************************************************************/
// //
// File: HTTPmsg_MessageLen_Function.cc // File: HTTPmsg_MessageLen_Function.cc
// Description: HTTP Message length calculator // Description: HTTP Message length calculator
// Rev: R9B // Rev: R9B
// Prodnr: CNL 113 469 // Prodnr: CNL 113 469
#include "HTTPmsg_PT.hh" #include "HTTPmsg_PT.hh"
#include "HTTPmsg_Types.hh" #include "HTTPmsg_Types.hh"
#include "HTTPmsg_MessageLen.hh" #include "HTTPmsg_MessageLen.hh"
using namespace HTTPmsg__Types; using namespace HTTPmsg__Types;
using namespace HTTPmsg__PortType; using namespace HTTPmsg__PortType;
namespace HTTPmsg__MessageLen { namespace HTTPmsg__MessageLen {
INTEGER f__HTTPMessage__len(OCTETSTRING const& stream) { INTEGER f__HTTPMessage__len(OCTETSTRING const& stream) {
HTTPMessage msg; HTTPMessage msg;
TTCN_Buffer *buf_p = new TTCN_Buffer() ; TTCN_Buffer *buf_p = new TTCN_Buffer() ;
buf_p->put_os(stream); buf_p->put_os(stream);
int buf_len = buf_p->get_read_len(); int buf_len = buf_p->get_read_len();
if( buf_len > 0) if( buf_len > 0)
{ {
if(f_HTTP_decodeCommon(buf_p, msg, true, false, NULL, NULL)) if(f_HTTP_decodeCommon(buf_p, msg, true, false, NULL, NULL))
{ {
buf_len -= buf_p->get_read_len(); buf_len -= buf_p->get_read_len();
} }
else else
buf_len = -1; buf_len = -1;
} else buf_len = -1; } else buf_len = -1;
delete buf_p; delete buf_p;
return buf_len; 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