ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/sockinfo.h
(Generate patch)

Comparing gvpe/src/sockinfo.h (file contents):
Revision 1.5 by pcg, Sat Apr 5 17:54:22 2003 UTC vs.
Revision 1.7 by pcg, Tue Oct 14 19:06:04 2003 UTC

19*/ 19*/
20 20
21#ifndef VPE_SOCKINFO_H__ 21#ifndef VPE_SOCKINFO_H__
22#define VPE_SOCKINFO_H__ 22#define VPE_SOCKINFO_H__
23 23
24#include <sys/socket.h> 24#include "netcompat.h"
25#include <netinet/in.h>
26 25
27#include "conf.h" 26#include "conf.h"
28 27
29// encapsulate one or more network addresses. this structure 28// encapsulate one or more network addresses. this structure
30// gets transferred over the wire, so be careful with endianness etc. 29// gets transferred over the wire, so be careful with endianness etc.
35 u8 prot; 34 u8 prot;
36 u8 pad1; 35 u8 pad1;
37 36
38 void set (const sockaddr_in *sa, u8 prot_); 37 void set (const sockaddr_in *sa, u8 prot_);
39 void set (const conf_node *conf, u8 prot_); 38 void set (const conf_node *conf, u8 prot_);
39 void set (const char *hostname, u16 port_, u8 prot_);
40 40
41 // return the supported protocols 41 // return the supported protocols
42 u8 supported_protocols (conf_node *conf = 0); 42 u8 supported_protocols (conf_node *conf = 0);
43 bool upgrade_protocol (u8 prot_, conf_node *conf = 0); 43 bool upgrade_protocol (u8 prot_, conf_node *conf = 0);
44 44

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines