devkitPro / libctru

Homebrew development library for Nintendo 3DS/Horizon OS user mode (Arm11)

Home Page:https://libctru.devkitpro.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing sockopts

ConnorRigby opened this issue · comments

it seems like
SO_RCVTIMEO and SO_SNDTIMEO are missing.

i defined them as

#define SO_RCVTIMEO 0x1006
#define SO_SNDTIMEO  0x1005

and it seemed to work, but is there a reason they are not enabled?

ah was reading thru old commits and found a commit with some info

commented

Hmm, but is it really not working? Can you do further tests?

I can confirm it at least somewhat works, but the project im working on is really unstable with the networking parts, so this may be my issue. I'll make a test just for this maybe.

Okay i now understand more about what those opts are/what they do, and can confirm they are what is causing my problems. I have an example that tests this functionality, but it is not exactly simple. I don't know how/where this would actually be implemented/fixed or i would try to help out. I read thru the soc_setsockopt implementation and it seems to just be doing some IPC to internal 3ds syscalls, so i got lost looking for implementations of those opts if they exist. I'd really like to get this feature working if possible. Let me know if there is something i can do to help

commented

Yeah, so the underlying service in the 3DS system software doesn't support these flags. It's a bummer, then. I'm sorry, but the only thing that can be done (short of rewriting the 3DS OS) is to rework your code to avoid needing this feature.