Source position: jwawinsock2.pas line 2419
function getsockname(
s: TSocket;
name: PSockAddr;
var namelen: Integer
):Integer;