retrohackers.com
http://retrohackers.com/

Not not your father's IP65
http://retrohackers.com/viewtopic.php?f=5&t=677
Page 1 of 1

Author:  Oliver [ Sun Nov 04, 2018 12:15 am ]
Post subject:  Not not your father's IP65

Hi,

Likely you think of IP65 as an asm written TCP/IP library for asm programmers. But IP65 has significantly changed recently in two directions:


1. C Interface

The IP65 programming model has deliberately always favoured simplicity over flexibility. However, targeting only asm programmers there weren't too many to appreciate that design.

Since I started to maintain IP65 I worked on making IP65 usable for C programmers and recently that effort was completed successfully. You can now download ready-made libraries plus a C header file and start your own TCP/IP or Internet program right away using cc65.

The approach to call asm code from C is totally natural to cc65 given that the C standard library is written almost completely in asm too. And just like the C standard library IP65 can be used on several 6502 machines. All this fits so nicely that I adopted IP65 as part of the cc65 GitHub project, meaning the IP65 main URL is now:

https://github.com/cc65/ip65

If you want to take a peek at the IP65 C interface check out https://github.com/cc65/ip65/blob/master/inc/ip65.h


2. Ready-to-run TCP/IP programs

Beside the libraries IP65 now comes with four C64 programs.

- Telnet65 is the only asm program coming with IP65. I completed it already 1.5 years ago.

- Date65 is primarily a demo for a simple IP65 C program.

- HFS65 is an HTTP file server allowing any web browser to access all files on a C64.

- Tweet65 is primarily a demo for triggering events on IFTTT aka if-this-then-that (https://ifttt.com/) from a 6502 machine. Additionally it can be used as-is to post tweets on Twitter after putting together a simple "Applet" on IFTTT.


Have fun with all the new possibilities!

Regards,
Oliver

Author:  jonnosan [ Sun Nov 04, 2018 9:57 pm ]
Post subject:  Re: Not not your father's IP65

this is excellent!

Author:  Oliver [ Sun Nov 04, 2018 10:03 pm ]
Post subject:  Re: Not not your father's IP65

Thanks for the positive feedback from exactly you :-)

Author:  jonnosan [ Sun Nov 04, 2018 10:14 pm ]
Post subject:  Re: Not not your father's IP65

although I noticed you are still polling the keyboard to see if the escape key has been pressed from deep inside the DHCP client code - hope that doesn't put anybody off from building any real apps :-) https://cc65.github.io/mailarchive/2011-01/9095.html

Author:  Oliver [ Sun Nov 04, 2018 10:56 pm ]
Post subject:  Re: Not not your father's IP65

That's what I nowadays circumwrite as "[...] has deliberately always favoured simplicity over flexibility [...]" ;-)

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/