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.15 by pcg, Thu Aug 7 17:54:27 2008 UTC vs.
Revision 1.16 by root, Tue Jan 17 21:25:50 2012 UTC

61 return sizeof (sockaddr_in); 61 return sizeof (sockaddr_in);
62 } 62 }
63 63
64 const char *ntoa () const; 64 const char *ntoa () const;
65 65
66 bool valid () const 66 bool valid () const;
67 {
68 return prot != 0 && host != 0;
69 }
70 67
71 sockinfo() { prot = 0; } 68 sockinfo() { prot = 0; }
72 69
73 sockinfo(const char *hostname, u16 port, u8 prot) { set (hostname, port, prot); } 70 sockinfo(const char *hostname, u16 port, u8 prot) { set (hostname, port, prot); }
74 sockinfo(const sockaddr_in &sa, u8 prot) { set (&sa, prot); } 71 sockinfo(const sockaddr_in &sa, u8 prot) { set (&sa, prot); }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines