Linuxpops  3.01.04
Spectral Anaysis Package for Single Dish Data
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sock.h
Go to the documentation of this file.
1 #ifndef SOCK_H
2 #define SOCK_H
3 
4 
5 /* define SOCK_DEF_BUFCT 4096 */ /* default buffer count */
6 /* define SOCK_SEL_STDIN 0 */ /* message came from standard input */
7 /* define SOCK_SEL_TIMEOUT -1 */ /* socket timeout occurred */
8 /* define SOCK_SEL_ERROR -2 */ /* socket error occurred */
9 /* define SOCK_SEL_SIGNAL -3 */ /* interrupted by a signal */
10 /* define SOCK_ONLY_OK 0 */
11 /* define SOCK_ONLY_TIMEOUT -1 */
12 /* define SOCK_ONLY_ERROR -2 */
13 /* define SOCK_ONLY_SIGNAL -3 */
14 /* define SOCK_INTR_RETRY 0 */
15 /* define SOCK_INTR_NO_RETRY 1 */
16 
17 
18 
19 struct BOUND {
20  int bind_fd;
21  struct DEST *dest;
22  struct SOCK *head; /* head of list */
23  struct sockaddr_in sin;
24  unsigned int bufct;
25  int interrupt;
26  int isxview; /* true if xview */
27  int isaio; /* true if aioread is turned on (Solaris2) */
28 };
29 
30 struct SOCK {
31  struct SOCK *next;
32  struct DEST *dest;
33  int fd;
34  struct sockaddr_in sin;
35 };
36 
37 #endif
38 
int isxview
Definition: sock.h:26
int isaio
Definition: sock.h:27
struct sockaddr_in sin
Definition: sock.h:23
Definition: mbdef.h:13
struct SOCK * head
Definition: sock.h:22
Definition: sock.h:30
int bind_fd
Definition: sock.h:20
int fd
Definition: sock.h:33
struct SOCK * next
Definition: sock.h:31
Definition: sock.h:19
struct DEST * dest
Definition: sock.h:21
struct DEST * dest
Definition: sock.h:32
unsigned int bufct
Definition: sock.h:24
struct sockaddr_in sin
Definition: sock.h:34
int interrupt
Definition: sock.h:25