GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
f_stccomm.h File Reference
#include "typedefs.h"

Go to the source code of this file.

Data Structures

struct  s_comm_message
 
struct  s_comm_portserv
 
struct  s_tcpcomm
 

Macros

#define f_stc_nosig(ps_server)
 
#define FALSE   0
 
#define MAXSERVER   50
 
#define PORTSERV_DATA   "portserv.dat"
 
#define PORTSERVER_M_DEF   "VSBP"
 
#define PORTSERVER_PORT   1000
 
#define PORTSERVER_S_DEF   "DSAG"
 
#define STC__BROPIPE   24
 
#define STC__CONNTOUT   15
 
#define STC__ECONNREF   26
 
#define STC__ECONNRES   28
 
#define STC__EINTR   27
 
#define STC__FAILURE   0
 
#define STC__INVADDR   8
 
#define STC__INVADDRF   9
 
#define STC__INVBUF   3
 
#define STC__INVPROTO   11
 
#define STC__INVSOCK   2
 
#define STC__INVTIME   5
 
#define STC__NETUNREA   16
 
#define STC__NGBUFSIZE   4
 
#define STC__NODATA   25
 
#define STC__NOTSOCK   7
 
#define STC__PORTINUS   17
 
#define STC__SOCKISC   14
 
#define STC__SOCKISP   18
 
#define STC__SOCKNSUP   10
 
#define STC__SOCKSPAF   13
 
#define STC__SOCKTABF   12
 
#define STC__SUCCESS   1
 
#define STC__TIMEOUT   6
 
#define TCPCOMM_INCLUDE   1
 
#define TPS__ECPORTS   19
 
#define TPS__EGSERVICE   23
 
#define TPS__EREGSERV   20
 
#define TPS__ERMFRPORTS   22
 
#define TPS__EWTOPORTS   21
 
#define TRUE   1
 

Functions

INTS4 f_stc_acceptclient (struct s_tcpcomm *ps_server, INTS4 *pi_channel)
 
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)
 
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)
 

Macro Definition Documentation

◆ f_stc_nosig

#define f_stc_nosig ( ps_server)
Value:
(ps_server)->i_signals = 100;

Definition at line 362 of file f_stccomm.h.

◆ FALSE

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

◆ MAXSERVER

#define MAXSERVER   50

Definition at line 319 of file f_stccomm.h.

◆ PORTSERV_DATA

#define PORTSERV_DATA   "portserv.dat"

Definition at line 316 of file f_stccomm.h.

◆ PORTSERVER_M_DEF

#define PORTSERVER_M_DEF   "VSBP"

Definition at line 321 of file f_stccomm.h.

◆ PORTSERVER_PORT

#define PORTSERVER_PORT   1000

Definition at line 320 of file f_stccomm.h.

◆ PORTSERVER_S_DEF

#define PORTSERVER_S_DEF   "DSAG"

Definition at line 322 of file f_stccomm.h.

◆ STC__BROPIPE

#define STC__BROPIPE   24

Definition at line 392 of file f_stccomm.h.

◆ STC__CONNTOUT

#define STC__CONNTOUT   15

Definition at line 383 of file f_stccomm.h.

Referenced by f_stc_connectserver(), and f_stc_disperror().

◆ STC__ECONNREF

#define STC__ECONNREF   26

Definition at line 394 of file f_stccomm.h.

Referenced by f_stc_connectserver(), and f_stc_disperror().

◆ STC__ECONNRES

#define STC__ECONNRES   28

Definition at line 396 of file f_stccomm.h.

Referenced by f_stc_read().

◆ STC__EINTR

#define STC__EINTR   27

Definition at line 395 of file f_stccomm.h.

Referenced by f_stc_read().

◆ STC__FAILURE

◆ STC__INVADDR

#define STC__INVADDR   8

Definition at line 376 of file f_stccomm.h.

Referenced by f_stc_disperror(), and f_stc_write().

◆ STC__INVADDRF

#define STC__INVADDRF   9

Definition at line 377 of file f_stccomm.h.

Referenced by f_stc_connectserver(), f_stc_createserver(), and f_stc_disperror().

◆ STC__INVBUF

#define STC__INVBUF   3

Definition at line 371 of file f_stccomm.h.

Referenced by f_stc_disperror(), and f_stc_read().

◆ STC__INVPROTO

#define STC__INVPROTO   11

Definition at line 379 of file f_stccomm.h.

Referenced by f_stc_connectserver(), f_stc_createserver(), and f_stc_disperror().

◆ STC__INVSOCK

◆ STC__INVTIME

#define STC__INVTIME   5

Definition at line 373 of file f_stccomm.h.

Referenced by f_stc_disperror(), f_stc_listenserver(), and f_stc_read().

◆ STC__NETUNREA

#define STC__NETUNREA   16

Definition at line 384 of file f_stccomm.h.

Referenced by f_stc_connectserver(), and f_stc_disperror().

◆ STC__NGBUFSIZE

#define STC__NGBUFSIZE   4

Definition at line 372 of file f_stccomm.h.

Referenced by f_stc_disperror(), and f_stc_read().

◆ STC__NODATA

#define STC__NODATA   25

Definition at line 393 of file f_stccomm.h.

Referenced by f_stc_read().

◆ STC__NOTSOCK

#define STC__NOTSOCK   7

◆ STC__PORTINUS

#define STC__PORTINUS   17

Definition at line 385 of file f_stccomm.h.

Referenced by f_stc_connectserver(), f_stc_createserver(), and f_stc_disperror().

◆ STC__SOCKISC

#define STC__SOCKISC   14

Definition at line 382 of file f_stccomm.h.

Referenced by f_stc_connectserver(), f_stc_createserver(), and f_stc_disperror().

◆ STC__SOCKISP

#define STC__SOCKISP   18

Definition at line 386 of file f_stccomm.h.

Referenced by f_stc_createserver(), and f_stc_disperror().

◆ STC__SOCKNSUP

#define STC__SOCKNSUP   10

Definition at line 378 of file f_stccomm.h.

Referenced by f_stc_connectserver(), f_stc_createserver(), and f_stc_disperror().

◆ STC__SOCKSPAF

#define STC__SOCKSPAF   13

Definition at line 381 of file f_stccomm.h.

Referenced by f_stc_connectserver(), f_stc_createserver(), and f_stc_disperror().

◆ STC__SOCKTABF

#define STC__SOCKTABF   12

Definition at line 380 of file f_stccomm.h.

Referenced by f_stc_connectserver(), f_stc_createserver(), and f_stc_disperror().

◆ STC__SUCCESS

◆ STC__TIMEOUT

◆ TCPCOMM_INCLUDE

#define TCPCOMM_INCLUDE   1

Definition at line 398 of file f_stccomm.h.

◆ TPS__ECPORTS

#define TPS__ECPORTS   19

Definition at line 387 of file f_stccomm.h.

Referenced by f_stc_disperror().

◆ TPS__EGSERVICE

#define TPS__EGSERVICE   23

Definition at line 391 of file f_stccomm.h.

Referenced by f_stc_disperror().

◆ TPS__EREGSERV

#define TPS__EREGSERV   20

Definition at line 388 of file f_stccomm.h.

Referenced by f_stc_disperror().

◆ TPS__ERMFRPORTS

#define TPS__ERMFRPORTS   22

Definition at line 390 of file f_stccomm.h.

Referenced by f_stc_disperror().

◆ TPS__EWTOPORTS

#define TPS__EWTOPORTS   21

Definition at line 389 of file f_stccomm.h.

Referenced by f_stc_disperror().

◆ TRUE

#define TRUE   1

Function Documentation

◆ f_stc_acceptclient()

INTS4 f_stc_acceptclient ( struct s_tcpcomm * ps_server,
INTS4 * pi_channel )

◆ f_stc_close()

◆ f_stc_connectserver()

◆ f_stc_createserver()

◆ f_stc_discclient()

◆ f_stc_disperror()

◆ f_stc_listenserver()

INTS4 f_stc_listenserver ( struct s_tcpcomm * ps_server)

◆ f_stc_read()

◆ f_stc_swap4()

void f_stc_swap4 ( INTS4 * )

◆ f_stc_write()