Error in SrvRecord class

May 19, 2008 at 12:59 PM
Edited May 23, 2008 at 9:28 PM

Change the line:

_port = (ushort)IPAddress.NetworkToHostOrder(BitConverter.ToUInt16(port, 0));

to:

_port = (
ushort)IPAddress.NetworkToHostOrder((short)BitConverter.ToUInt16(port, 0));

otherwise the returned port is always 0.


Stefano

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Coordinator
May 29, 2008 at 5:30 PM
Edited May 29, 2008 at 5:32 PM
Great catch! Thanks for the feedback.

later,
jmonty
Coordinator
May 29, 2008 at 5:41 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.