-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsocketnode.h
More file actions
29 lines (25 loc) · 733 Bytes
/
socketnode.h
File metadata and controls
29 lines (25 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*
* Hans Liss <Hans@Liss.pp.se>
*
* This is based in part on code from IP-login2 from the same author,
* which uses ICMP ping code from Mike Muuss 'ping' program.
*
*/
/*
A structure for keeping track of a list of sockets and misc data
for them.
*/
typedef struct socketnode_s
{
/* IP address to use as source address */
struct in_addr srcaddress;
/* The socket's fd */
int socket;
/* Link */
struct socketnode_s *next;
} *socketnode;