[fpc-pascal] SOLVED fpSelect fails with UDP sockets?

wkitty42 at windstream.net wkitty42 at windstream.net
Sun Apr 3 18:49:22 CEST 2016


On 04/03/2016 12:32 PM, Klaus Hartnegg wrote:
>    dadr.sin_family := AF_INET;
>    dadr.sin_addr.s_bytes[1] := 127;
>    dadr.sin_addr.s_bytes[2] := 0;
>    dadr.sin_addr.s_bytes[2] := 0;
>    dadr.sin_addr.s_bytes[2] := 1;

shouldn't this be

   dadr.sin_addr.s_bytes[1] := 127;
   dadr.sin_addr.s_bytes[2] := 0;
   dadr.sin_addr.s_bytes[3] := 0;
   dadr.sin_addr.s_bytes[4] := 1;


NOTE: i've not done any research to see what dadr.sin_addr.s_bytes is but i 
assume that it is an array of bytes to contain each of the IP address parts...

-- 
  NOTE: No off-list assistance is given without prior approval.
        *Please keep mailing list traffic on the list* unless
        private contact is specifically requested and granted.



More information about the fpc-pascal mailing list