cd1234fce71ea616cfbcd6362ac46a528b524c02
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.5.pl7
10 // for Janos Zoltan Szabo (ejnosza@balisea) on Mon Sep 13 09:35:21 2004
13 // You may modify this file. Complete the body of empty functions and
14 // add your member functions here.
23 PCOType::PCOType(const char *par_port_name
)
24 : PCOType_BASE(par_port_name
)
34 void PCOType::set_parameter(const char *parameter_name
,
35 const char *parameter_value
)
40 void PCOType::Event_Handler(const fd_set
*read_fds
,
41 const fd_set
*write_fds
, const fd_set
*error_fds
,
42 double time_since_last_call
)
44 size_t buf_len
= 0, buf_size
= 32;
45 char *buf
= (char*)Malloc(buf_size
);
49 if (buf_len
> 0) incoming_message(CHARSTRING(buf_len
, buf
));
52 } else if (c
== 'n') {
53 incoming_message(CHARSTRING(buf_len
, buf
));
56 if (buf_len
>= buf_size
) {
58 buf
= (char*)Realloc(buf
, buf_size
);
66 void PCOType::user_map(const char *system_port
)
70 FD_SET(fileno(stdin
), &readfds
);
71 Install_Handler(&readfds
, NULL
, NULL
, 0.0);
74 void PCOType::user_unmap(const char *system_port
)
79 void PCOType::user_start()
84 void PCOType::user_stop()
89 void PCOType::outgoing_send(const CHARSTRING
& send_par
)
91 puts((const char*)send_par
);
95 } /* end of namespace */
This page took 0.049232 seconds and 5 git commands to generate.