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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to