1 ///////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2000-2014 Ericsson Telecom AB
3 // All rights reserved. This program and the accompanying materials
4 // are made available under the terms of the Eclipse Public License v1.0
5 // which accompanies this distribution, and is available at
6 // http://www.eclipse.org/legal/epl-v10.html
7 ///////////////////////////////////////////////////////////////////////////////
8 // This Test Port skeleton source file was generated by the
9 // TTCN-3 Compiler of the TTCN-3 Test Executor version 1.7.pre0 build 8
10 // for edmdeli (edmdeli@EGNA8004JPBUT7R) on Thu Mar 1 14:45:21 2007
13 // You may modify this file. Complete the body of empty functions and
14 // add your member functions here.
19 #include "TimplicitEnc.hh"
24 namespace TimplicitEnc
{
27 PCOType_PROVIDER::PCOType_PROVIDER(const char *par_port_name
)
33 PCOType_PROVIDER::~PCOType_PROVIDER()
38 void PCOType_PROVIDER::set_parameter(const char *parameter_name
,
39 const char *parameter_value
)
44 void PCOType_PROVIDER::Event_Handler(const fd_set
*read_fds
,
45 const fd_set
*write_fds
, const fd_set
*error_fds
,
46 double time_since_last_call
)
48 size_t buf_len
= 0, buf_size
= 32;
49 char *buf
= (char*)Malloc(buf_size
);
53 if (buf_len
> 0) incoming_message(CHARSTRING(buf_len
, buf
));
56 } else if (c
== '\n') {
57 incoming_message(CHARSTRING(buf_len
, buf
));
60 if (buf_len
>= buf_size
) {
62 buf
= (char*)Realloc(buf
, buf_size
);
70 void PCOType_PROVIDER::user_map(const char *system_port
)
75 Install_Handler(&readfds
, NULL
, NULL
, 0.0);
77 //start with sending an octetstring that cannot be decoded to MyPDU
78 const OCTETSTRING myBadOctets
= str2oct("FFFFFFFFFFFFFF");
79 incoming_message(myBadOctets
);
82 void PCOType_PROVIDER::user_unmap(const char *system_port
)
87 void PCOType_PROVIDER::user_start()
92 void PCOType_PROVIDER::user_stop()
97 void PCOType_PROVIDER::outgoing_send(const CHARSTRING
& send_par
)
99 incoming_message(send_par
);
102 void PCOType_PROVIDER::outgoing_send(const OCTETSTRING
& send_par
)
104 incoming_message(send_par
);
108 } /* end of namespace */
This page took 0.033957 seconds and 5 git commands to generate.