1 /******************************************************************************
2 * Copyright (c) 2000-2016 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
11 * Szabo, Janos Zoltan – initial implementation
13 ******************************************************************************/
14 // This Test Port skeleton source file was generated by the
15 // TTCN-3 Compiler of the TTCN-3 Test Executor version CRL 113 200/4 R2A
16 // for Arpad Lovassy (earplov@esekilxxen1841) on Tue Jul 22 16:49:55 2014
17 // You may modify this file. Complete the body of empty functions and
18 // add your member functions here.
27 PCOType::PCOType(const char *par_port_name
)
28 : PCOType_BASE(par_port_name
)
38 void PCOType::set_parameter(const char * /*parameter_name*/,
39 const char * /*parameter_value*/)
44 void PCOType::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::Handle_Fd_Event(int fd, boolean is_readable,
71 boolean is_writable, boolean is_error) {}*/
73 void PCOType::Handle_Fd_Event_Error(int /*fd*/)
78 void PCOType::Handle_Fd_Event_Writable(int /*fd*/)
83 void PCOType::Handle_Fd_Event_Readable(int /*fd*/)
88 /*void PCOType::Handle_Timeout(double time_since_last_call) {}*/
90 void PCOType::user_map(const char *system_port
)
94 FD_SET(fileno(stdin
), &readfds
);
95 Install_Handler(&readfds
, NULL
, NULL
, 0.0);
98 void PCOType::user_unmap(const char *system_port
)
103 void PCOType::user_start()
108 void PCOType::user_stop()
113 void PCOType::outgoing_send(const CHARSTRING
& send_par
)
115 puts((const char*)send_par
);
119 } /* end of namespace */
This page took 0.032491 seconds and 5 git commands to generate.