]> Chaos Git - corbenik/ctrulib.git/commit
Change protocol in socket() to 0 if appropriate - Fix #250
authorStephen Shkardoon <ss23@ss23.geek.nz>
Thu, 21 Jan 2016 04:56:48 +0000 (23:56 -0500)
committerStephen Shkardoon <ss23@ss23.geek.nz>
Thu, 21 Jan 2016 04:56:48 +0000 (23:56 -0500)
commit248c02cf8e2aa9de84ab6707456bb6fd18cb7fa4
tree4c2d29f14d1ac7b988590060749eb1d754dfcfd4
parentb8741b35e813cf6f9b601bd7d1a700ffd77d47a4
Change protocol in socket() to 0 if appropriate - Fix #250

When the user is specifying TCP or UDP and it is the only option,
change the protocol parameter to 0, which is the only value the
underlying 3DS system will accept as valid. This compatibility layer
ensures that code will work transparently whether on a host system
or the 3DS.
libctru/source/services/soc/soc_socket.c