1 // This Test Port skeleton source file was generated by the
2 // TTCN-3 Compiler of the TTCN-3 Test Executor version CRL 113 200/4 R2A
3 // for Arpad Lovassy (earplov@esekilxxen1841) on Tue Jul 22 16:49:55 2014
5 // Copyright Ericsson Telecom AB 2000-2014
7 // You may modify this file. Complete the body of empty functions and// add your member functions here.
16 PCOType::PCOType(const char *par_port_name
)
17 : PCOType_BASE(par_port_name
)
27 void PCOType::set_parameter(const char * /*parameter_name*/,
28 const char * /*parameter_value*/)
33 void PCOType::Event_Handler(const fd_set
*read_fds
,
34 const fd_set
*write_fds
, const fd_set
*error_fds
,
35 double time_since_last_call
)
37 size_t buf_len
= 0, buf_size
= 32;
38 char *buf
= (char*)Malloc(buf_size
);
42 if (buf_len
> 0) incoming_message(CHARSTRING(buf_len
, buf
));
45 } else if (c
== '\n') {
46 incoming_message(CHARSTRING(buf_len
, buf
));
49 if (buf_len
>= buf_size
) {
51 buf
= (char*)Realloc(buf
, buf_size
);
59 /*void PCOType::Handle_Fd_Event(int fd, boolean is_readable,
60 boolean is_writable, boolean is_error) {}*/
62 void PCOType::Handle_Fd_Event_Error(int /*fd*/)
67 void PCOType::Handle_Fd_Event_Writable(int /*fd*/)
72 void PCOType::Handle_Fd_Event_Readable(int /*fd*/)
77 /*void PCOType::Handle_Timeout(double time_since_last_call) {}*/
79 void PCOType::user_map(const char *system_port
)
83 FD_SET(fileno(stdin
), &readfds
);
84 Install_Handler(&readfds
, NULL
, NULL
, 0.0);
87 void PCOType::user_unmap(const char *system_port
)
92 void PCOType::user_start()
97 void PCOType::user_stop()
102 void PCOType::outgoing_send(const CHARSTRING
& send_par
)
104 puts((const char*)send_par
);
108 } /* end of namespace */
This page took 0.05661 seconds and 6 git commands to generate.