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.2 by pcg, Wed Apr 2 03:25:17 2003 UTC vs.
Revision 1.3 by pcg, Wed Apr 2 05:15:00 2003 UTC

34 u16 port; 34 u16 port;
35 u8 prot; 35 u8 prot;
36 u8 pad1; 36 u8 pad1;
37 37
38 void set (const sockaddr_in *sa, u8 prot_ = PROT_UDPv4); 38 void set (const sockaddr_in *sa, u8 prot_ = PROT_UDPv4);
39 void set (const conf_node *conf); 39 void set (const conf_node *conf, u8 prot_ = PROT_UDPv4);
40 40
41 operator const char *() const; 41 operator const char *() const;
42 42
43 const sockaddr *sav4 () const; 43 const sockaddr *sav4 () const;
44 const socklen_t salenv4 () const 44 const socklen_t salenv4 () const
45 {
46 return sizeof (sockaddr_in); 45 { return sizeof (sockaddr_in); }
47 }
48 46
49 const char *ntoa () const; 47 const char *ntoa () const;
50 48
51 sockinfo() 49 sockinfo() { prot = 0; }
52 {
53 prot = 0;
54 }
55 50
56 sockinfo(const sockaddr_in &sa, u8 prot_ = PROT_UDPv4) 51 sockinfo(const sockaddr_in &sa, u8 prot_ = PROT_UDPv4)
57 {
58 set (&sa, prot_); 52 { set (&sa, prot_); }
59 } 53
54 sockinfo(const conf_node *conf, u8 prot_ = PROT_UDPv4)
55 { set (conf, prot_); }
60 }; 56 };
61 57
62inline bool 58inline bool
63operator == (const sockinfo &a, const sockinfo &b) 59operator == (const sockinfo &a, const sockinfo &b)
64{ 60{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines