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.17 by pcg, Mon Mar 7 01:31:26 2005 UTC vs.
Revision 1.18 by pcg, Tue Mar 15 19:23:33 2005 UTC

63void 63void
64sockinfo::set (const conf_node *conf, u8 prot_) 64sockinfo::set (const conf_node *conf, u8 prot_)
65{ 65{
66 if (prot_ == PROT_DNSv4) 66 if (prot_ == PROT_DNSv4)
67 { 67 {
68 host = 0x01010101; port = htons (conf->id); prot = prot_; 68 host = htonl (conf->id); port = 0; prot = prot_;
69 } 69 }
70 else 70 else
71 set (conf->hostname, 71 set (conf->hostname,
72 prot_ == PROT_UDPv4 ? conf->udp_port 72 prot_ == PROT_UDPv4 ? conf->udp_port
73 : prot_ == PROT_TCPv4 ? conf->tcp_port 73 : prot_ == PROT_TCPv4 ? conf->tcp_port

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines