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

Comparing gvpe/src/sockinfo.C (file contents):
Revision 1.26 by root, Sat Dec 17 22:05:34 2011 UTC vs.
Revision 1.27 by root, Tue Jan 17 21:25:50 2012 UTC

113 sprintf (hostport, "%.15s", inet_ntoa (ia)); 113 sprintf (hostport, "%.15s", inet_ntoa (ia));
114 114
115 return hostport; 115 return hostport;
116} 116}
117 117
118bool
119sockinfo::valid () const
120{
121 return (prot & THISNODE->protocols) && host;
122}
123
118sockinfo::operator const char *() const 124sockinfo::operator const char *() const
119{ 125{
120 in_addr ia = { host }; 126 in_addr ia = { host };
121 127
122 sprintf (hostport, "%s/%.15s:%d", strprotocol (prot), inet_ntoa (ia), ntohs (port) & 0xffff); 128 sprintf (hostport, "%s/%.15s:%d", strprotocol (prot), inet_ntoa (ia), ntohs (port) & 0xffff);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines