Skip to content

Commit

Permalink
sceNetGetsockopt
Browse files Browse the repository at this point in the history
  • Loading branch information
red-prig committed Nov 8, 2023
1 parent 2dc4d53 commit fea4a0e
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/ps4_libscenet.pas
Original file line number Diff line number Diff line change
Expand Up @@ -347,14 +347,17 @@ function ps4_sceNetEpollControl(eid:Integer; op:Integer; id:Integer; event:pSceN
Result:=0;
end;

//function ps4_sceNetGetsockopt(s:Integer; level:Integer; optname:Integer; optval:Pointer; optlen:pSceNetSocklen_t):Integer; SysV_ABI_CDecl;
//begin
// Result:=0;
//end;
function ps4_sceNetGetsockopt(s:Integer; level:Integer; optname:Integer; optval:Pointer; optlen:pSceNetSocklen_t):Integer; SysV_ABI_CDecl;
begin
Result:=0;
end;

function ps4_sceNetResolverStartAton(rid:Integer; const addr:pSceNetInAddr; hostname:PChar; hostname_len:Integer; timeout:Integer; retry:Integer; flags:Integer):Integer; SysV_ABI_CDecl;
begin
Writeln('sceNetResolveStartAton:',hostname,':',flags);
if (hostname<>nil) then
begin
FillChar(hostname^,hostname_len,0);
end;
Result:=0;
end;

Expand Down Expand Up @@ -655,7 +658,7 @@ function Load_libSceNet(Const name:RawByteString):TElf_node;
lib^.set_proc($A501A91D8A290086,@ps4_sceNetNtohl);
lib^.set_proc($45BBEDFB9636884C,@ps4_sceNetNtohs);
lib^.set_proc($655C38E9BB1AB009,@ps4_sceNetEpollControl);
//lib^.set_proc($C6986B66EB25EFC1,@ps4_sceNetGetsockopt);
lib^.set_proc($C6986B66EB25EFC1,@ps4_sceNetGetsockopt);
lib^.set_proc($0296F8603C4AB112,@ps4_sceNetResolverStartAton);
lib^.set_proc($9099581F9B8C0162,@ps4_sceNetResolverDestroy);
lib^.set_proc($3975D7E26524DEE9,@ps4_sceNetConnect);
Expand Down

0 comments on commit fea4a0e

Please sign in to comment.