end;\r
function GetSocketName(Sock: LongInt; var Addr;var Addrlen: LongInt):LongInt;\r
begin\r
- result := fpgetpeername(sock,@addr,@addrlen);\r
+ result := fpgetsockname(sock,@addr,@addrlen);\r
end;\r
function Accept(Sock: LongInt; var Addr; var Addrlen: LongInt):LongInt;\r
begin\r