Update for FPC 2.6.0
This commit is contained in:
parent
51a64dd309
commit
d9f8be0ae4
|
@ -503,6 +503,7 @@ Var
|
||||||
PHE : PHostEnt;
|
PHE : PHostEnt;
|
||||||
SIN : TINetSockAddr;
|
SIN : TINetSockAddr;
|
||||||
Temp : LongInt;
|
Temp : LongInt;
|
||||||
|
SL : TSockLen;
|
||||||
Begin
|
Begin
|
||||||
Result := NIL;
|
Result := NIL;
|
||||||
|
|
||||||
|
@ -521,7 +522,9 @@ Begin
|
||||||
Else
|
Else
|
||||||
FPeerName := StrPas(PHE^.h_name);
|
FPeerName := StrPas(PHE^.h_name);
|
||||||
|
|
||||||
fpGetSockName(FSocketHandle, @SIN, SizeOf(SIN));
|
SL := SizeOf(SIN);
|
||||||
|
|
||||||
|
fpGetSockName(FSocketHandle, @SIN, @SL);
|
||||||
|
|
||||||
FHostIP := NetAddrToStr(SIN.sin_addr);
|
FHostIP := NetAddrToStr(SIN.sin_addr);
|
||||||
Client := TSocketClass.Create;
|
Client := TSocketClass.Create;
|
||||||
|
|
Loading…
Reference in New Issue