#include "typedefs.h"
Go to the source code of this file.
Classes | |
struct | s_tcpcomm |
struct | s_comm_message |
struct | s_comm_portserv |
Defines | |
#define | PORTSERV_DATA "portserv.dat" |
#define | MAXSERVER 50 |
#define | PORTSERVER_PORT 1000 |
#define | PORTSERVER_M_DEF "VSBP" |
#define | PORTSERVER_S_DEF "DSAG" |
#define | FALSE 0 |
#define | TRUE 1 |
#define | f_stc_nosig(ps_server) (ps_server)->i_signals = 100; |
#define | STC__FAILURE 0 |
#define | STC__SUCCESS 1 |
#define | STC__INVSOCK 2 |
#define | STC__INVBUF 3 |
#define | STC__NGBUFSIZE 4 |
#define | STC__INVTIME 5 |
#define | STC__TIMEOUT 6 |
#define | STC__NOTSOCK 7 |
#define | STC__INVADDR 8 |
#define | STC__INVADDRF 9 |
#define | STC__SOCKNSUP 10 |
#define | STC__INVPROTO 11 |
#define | STC__SOCKTABF 12 |
#define | STC__SOCKSPAF 13 |
#define | STC__SOCKISC 14 |
#define | STC__CONNTOUT 15 |
#define | STC__NETUNREA 16 |
#define | STC__PORTINUS 17 |
#define | STC__SOCKISP 18 |
#define | TPS__ECPORTS 19 |
#define | TPS__EREGSERV 20 |
#define | TPS__EWTOPORTS 21 |
#define | TPS__ERMFRPORTS 22 |
#define | TPS__EGSERVICE 23 |
#define | STC__BROPIPE 24 |
#define | STC__NODATA 25 |
#define | STC__ECONNREF 26 |
#define | STC__EINTR 27 |
#define | STC__ECONNRES 28 |
#define | TCPCOMM_INCLUDE 1 |
Functions | |
INTS4 | f_stc_connectserver (CHARS *c_node, INTS4 l_port, INTS4 *pi_channel, struct s_tcpcomm *ps_client) |
INTS4 | f_stc_createserver (INTS4 *pl_port, struct s_tcpcomm *ps_server) |
INTS4 | f_stc_listenserver (struct s_tcpcomm *ps_server) |
INTS4 | f_stc_acceptclient (struct s_tcpcomm *ps_server, INTS4 *pi_channel) |
INTS4 | f_stc_disperror (INTS4 i_error, CHARS *c_dest, INTS4 i_out) |
INTS4 | f_stc_read (void *p_buffer, INTS4 i_buflen, INTS4 i_channel, INTS4 i_timeout) |
INTS4 | f_stc_write (void *p_buffer, INTS4 i_buflen, INTS4 i_channel) |
INTS4 | f_stc_close (struct s_tcpcomm *ps_tcp) |
INTS4 | f_stc_discclient (INTS4 i_channel) |
void | f_stc_swap4 (INTS4 *) |
#define f_stc_nosig | ( | ps_server | ) | (ps_server)->i_signals = 100; |
Definition at line 357 of file f_stccomm.h.
#define FALSE 0 |
Definition at line 355 of file f_stccomm.h.
Referenced by f_fltdscr(), f_fltrd(), f_read_server(), f_send_ackn(), and f_typflt().
#define MAXSERVER 50 |
Definition at line 319 of file f_stccomm.h.
#define PORTSERV_DATA "portserv.dat" |
Definition at line 316 of file f_stccomm.h.
#define PORTSERVER_M_DEF "VSBP" |
Definition at line 321 of file f_stccomm.h.
#define PORTSERVER_PORT 1000 |
Definition at line 320 of file f_stccomm.h.
#define PORTSERVER_S_DEF "DSAG" |
Definition at line 322 of file f_stccomm.h.
#define STC__BROPIPE 24 |
Definition at line 387 of file f_stccomm.h.
#define STC__CONNTOUT 15 |
Definition at line 378 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define STC__ECONNREF 26 |
Definition at line 389 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define STC__ECONNRES 28 |
Definition at line 391 of file f_stccomm.h.
#define STC__EINTR 27 |
Definition at line 390 of file f_stccomm.h.
#define STC__FAILURE 0 |
Definition at line 363 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define STC__INVADDR 8 |
Definition at line 371 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define STC__INVADDRF 9 |
Definition at line 372 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define STC__INVBUF 3 |
Definition at line 366 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define STC__INVPROTO 11 |
Definition at line 374 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define STC__INVSOCK 2 |
Definition at line 365 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define STC__INVTIME 5 |
Definition at line 368 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define STC__NETUNREA 16 |
Definition at line 379 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define STC__NGBUFSIZE 4 |
Definition at line 367 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define STC__NODATA 25 |
Definition at line 388 of file f_stccomm.h.
#define STC__NOTSOCK 7 |
Definition at line 370 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define STC__PORTINUS 17 |
Definition at line 380 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define STC__SOCKISC 14 |
Definition at line 377 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define STC__SOCKISP 18 |
Definition at line 381 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define STC__SOCKNSUP 10 |
Definition at line 373 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define STC__SOCKSPAF 13 |
Definition at line 376 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define STC__SOCKTABF 12 |
Definition at line 375 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define STC__SUCCESS 1 |
Definition at line 364 of file f_stccomm.h.
Referenced by f_evcli_close(), f_evcli_con(), f_evcli_evt(), f_evt_get_buffer(), f_evt_get_close(), f_evt_get_event(), f_evt_get_newbuf(), f_evt_get_open(), f_his_getbas(), f_his_getdir(), f_his_gethis(), f_his_senddir(), f_his_sendhis(), f_his_server(), f_his_wait(), f_mbs_ml_setup(), f_mbs_mo_setup(), f_mbs_setup(), f_mbs_status(), f_read_server(), f_send_ackn(), f_stc_disperror(), f_ut_set_ml_r(), f_ut_set_mo_r(), f_ut_setup_r(), f_ut_status_r(), fLmdConnectMbs(), fLmdGetMbsBuffer(), and TGo4MBSViewer::Refresh().
#define STC__TIMEOUT 6 |
Definition at line 369 of file f_stccomm.h.
Referenced by f_evt_get_buffer(), f_evt_get_event(), f_evt_get_newbuf(), f_evt_get_open(), f_stc_disperror(), and fLmdGetMbsBuffer().
#define TCPCOMM_INCLUDE 1 |
Definition at line 393 of file f_stccomm.h.
#define TPS__ECPORTS 19 |
Definition at line 382 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define TPS__EGSERVICE 23 |
Definition at line 386 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define TPS__EREGSERV 20 |
Definition at line 383 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define TPS__ERMFRPORTS 22 |
Definition at line 385 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define TPS__EWTOPORTS 21 |
Definition at line 384 of file f_stccomm.h.
Referenced by f_stc_disperror().
#define TRUE 1 |
Definition at line 356 of file f_stccomm.h.
Referenced by f_evcli_buf(), f_evcli_close(), f_evcli_con(), f_fltrd(), f_read_server(), f_send_ackn(), and f_typflt().
Definition at line 663 of file f_stccomm.c.
References ENOTSOCK, s_tcpcomm::namelength, s_tcpcomm::sock_name, and s_tcpcomm::sock_rw.
Referenced by f_his_wait().
Definition at line 1068 of file f_stccomm.c.
References s_tcpcomm::socket.
Referenced by f_evcli_buf(), f_evcli_close(), f_evcli_con(), f_evt_get_close(), f_his_close(), f_his_getbas(), f_his_getdir(), f_his_gethis(), and fLmdCloseMbs().
INTS4 f_stc_connectserver | ( | CHARS * | c_node, | |
INTS4 | l_port, | |||
INTS4 * | pi_channel, | |||
struct s_tcpcomm * | ps_client | |||
) |
Definition at line 470 of file f_stccomm.c.
References EADDRINUSE, EAFNOSUPPORT, ECONNREFUSED, EISCONN, ENETUNREACH, ENOBUFS, ENOTSOCK, EPROTONOSUPPORT, ESOCKTNOSUPPORT, ETIMEDOUT, s_tcpcomm::hostentptr, s_tcpcomm::hostentstruct, and s_tcpcomm::socket.
Referenced by f_evcli_con(), f_evt_get_open(), f_his_getbas(), f_his_getdir(), f_his_gethis(), f_mbs_ml_setup(), f_mbs_mo_setup(), f_mbs_setup(), f_mbs_status(), and fLmdConnectMbs().
Definition at line 824 of file f_stccomm.c.
References EADDRINUSE, EAFNOSUPPORT, ENOBUFS, ENOTSOCK, EPROTONOSUPPORT, ESOCKTNOSUPPORT, s_tcpcomm::hostentptr, s_tcpcomm::hostname, s_tcpcomm::namelength, s_tcpcomm::sock_name, s_tcpcomm::sock_rw, and s_tcpcomm::socket.
Referenced by f_his_server().
Definition at line 1149 of file f_stccomm.c.
Referenced by f_evcli_close(), f_evt_get_close(), f_his_getbas(), f_his_getdir(), f_his_gethis(), f_his_senddir(), f_his_sendhis(), f_his_wait(), f_mbs_ml_setup(), f_mbs_mo_setup(), f_mbs_setup(), and f_mbs_status().
Definition at line 1376 of file f_stccomm.c.
References STC__CONNTOUT, STC__ECONNREF, STC__FAILURE, STC__INVADDR, STC__INVADDRF, STC__INVBUF, STC__INVPROTO, STC__INVSOCK, STC__INVTIME, STC__NETUNREA, STC__NGBUFSIZE, STC__NOTSOCK, STC__PORTINUS, STC__SOCKISC, STC__SOCKISP, STC__SOCKNSUP, STC__SOCKSPAF, STC__SOCKTABF, STC__SUCCESS, STC__TIMEOUT, TPS__ECPORTS, TPS__EGSERVICE, TPS__EREGSERV, TPS__ERMFRPORTS, and TPS__EWTOPORTS.
Referenced by f_evcli_con(), f_read_server(), and f_send_ackn().
Definition at line 1230 of file f_stccomm.c.
References s_tcpcomm::sock_rw.
Definition at line 129 of file f_stccomm.c.
References c_msg, and ECONNRESET.
Referenced by f_evt_get_buffer(), f_evt_get_newbuf(), f_evt_get_open(), f_his_getbas(), f_his_getdir(), f_his_gethis(), f_his_wait(), f_read_server(), f_ut_set_ml_r(), f_ut_set_mo_r(), f_ut_setup_r(), f_ut_status_r(), fLmdConnectMbs(), and fLmdGetMbsBuffer().
void f_stc_swap4 | ( | INTS4 * | ) |
Definition at line 315 of file f_stccomm.c.
References c_msg, ENOTSOCK, and l_retval.
Referenced by f_evcli_con(), f_evt_get_buffer(), f_evt_get_close(), f_evt_get_newbuf(), f_his_getbas(), f_his_getdir(), f_his_gethis(), f_his_senddir(), f_his_sendhis(), f_his_wait(), f_send_ackn(), f_ut_set_ml(), f_ut_set_ml_r(), f_ut_set_mo(), f_ut_set_mo_r(), f_ut_setup(), f_ut_setup_r(), f_ut_status(), f_ut_status_r(), fLmdCloseMbs(), and fLmdGetMbsBuffer().