if (addr = '::') and (origaddr = '') and (fdhandlein < 0) then begin\r
{writeln('failed to create an IPV6 socket with error ',socketerror,'. trying to create an IPV4 one instead');}\r
addr := '0.0.0.0';\r
+ biniptemp := ipstrtobinf(addr);\r
fdhandlein := socket(PF_INET,socktype,0);\r
end;\r
{$endif}\r
destx := {$ifdef win32}winsock.pSockAddr{$else}pInetSockAddrV{$endif}(@dest)\r
end;\r
{$else}\r
- destx := {$ifdef win32}winsock.pSockAddr{$else}pInetSockAddrV{$endif}(@dest)\r
+ destx := {$ifdef win32}winsock.pSockAddr{$else}pInetSockAddrV{$endif}(@dest);\r
{$endif}\r
\r
result := {$ifdef win32}winsock.sendto{$else}system_sendto{$endif}(self.fdhandleout,data^,len,0,destx^,destlen);\r