What I have been attempting for the past few hours has been a kind of basic telnet client so users can watch "towel.blinkenlights.nl" on their switch.
In order to avoid reinventing the wheel I attempted to use the telnet source code found here https://l3net.wordpress.com/projects/simpletelnet-project/
My current version of the stelnet.c file can be found in this gist https://gist.github.com/jfmherokiller/53279e9251b5dd0c463ec8028df7192e
Source of animation http://www.asciimation.co.nz/
I believe I made some kind of progress by applying the nxlink example code. however I seem to have hit an issue im not sure how to go about fixing.
The issue seems to be "Select. Error: Socket operation on non-socket".
This error seems to crash the console as well which makes testing it tedious because i must reenter rcmmode on my console every time.
If anyone has any helpful input please respond because my googlefu isnt turning up any reliable results.
~~Update~~
I got it working and the latest version of the code is at the gist link.
~~update~~
included the cmake files i used to compile the code and attached the nro to this post.
I do not have a pretty icon or anything for it since this was meant to be a one off kind of thing to test switch homebrew and my coding skills.
~~update~~
feel free to use this code as a kind of example for working sockets on libnx
~~update~~
File loading portion completed.
now to make use of it put a telnet.conf file in the /switch folder
the format of the file is
In order to avoid reinventing the wheel I attempted to use the telnet source code found here https://l3net.wordpress.com/projects/simpletelnet-project/
My current version of the stelnet.c file can be found in this gist https://gist.github.com/jfmherokiller/53279e9251b5dd0c463ec8028df7192e
Source of animation http://www.asciimation.co.nz/
I believe I made some kind of progress by applying the nxlink example code. however I seem to have hit an issue im not sure how to go about fixing.
The issue seems to be "Select. Error: Socket operation on non-socket".
This error seems to crash the console as well which makes testing it tedious because i must reenter rcmmode on my console every time.
If anyone has any helpful input please respond because my googlefu isnt turning up any reliable results.
~~Update~~
I got it working and the latest version of the code is at the gist link.
~~update~~
included the cmake files i used to compile the code and attached the nro to this post.
I do not have a pretty icon or anything for it since this was meant to be a one off kind of thing to test switch homebrew and my coding skills.
~~update~~
feel free to use this code as a kind of example for working sockets on libnx
~~update~~
File loading portion completed.
now to make use of it put a telnet.conf file in the /switch folder
the format of the file is
Code:
<server hostname here>
<port here>
Attachments
Last edited by jfmherokiller,