Classes | Defines | Functions

MbsAPIbase/f_stccomm.h File Reference

#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 Documentation

#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
#define STC__TIMEOUT   6
#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

Function Documentation

INTS4 f_stc_acceptclient ( struct s_tcpcomm ps_server,
INTS4 pi_channel 
)

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().

INTS4 f_stc_close ( struct s_tcpcomm ps_tcp  ) 
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_discclient ( INTS4  i_channel  ) 
INTS4 f_stc_disperror ( INTS4  i_error,
CHARS c_dest,
INTS4  i_out 
)
INTS4 f_stc_listenserver ( struct s_tcpcomm ps_server  ) 

Definition at line 1230 of file f_stccomm.c.

References s_tcpcomm::sock_rw.

INTS4 f_stc_read ( void *  p_buffer,
INTS4  i_buflen,
INTS4  i_channel,
INTS4  i_timeout 
)
void f_stc_swap4 ( INTS4  ) 
INTS4 f_stc_write ( void *  p_buffer,
INTS4  i_buflen,
INTS4  i_channel 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines