- if assigned(secondlistener) then if (dest.inaddr.family = AF_INET) then begin\r
- result := secondlistener.sendto(dest,destlen,data,len);\r
- exit;\r
- end;\r
+ if assigned(secondlistener) then if (dest.inaddr.family = AF_INET) then begin\r
+ result := secondlistener.sendto(dest,destlen,data,len);\r
+ exit;\r
+ end;\r
+ {$endif}\r
+ {$ifdef ipv6}\r
+ if isv6socket then begin\r
+ biniptemp := inaddrvtobinip(dest);\r
+ converttov6(biniptemp);\r
+ destlen := makeinaddrv(biniptemp,inttostr(ntohs(dest.InAddr.port)),realdest);\r
+ destx := {$ifdef win32}winsock.pSockAddr{$else}pInetSockAddrV{$endif}(@realdest)\r
+ end else begin\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