Writing apps that use TCP/IP

C and PASCAL (or any other high-level languages) in here please

Moderators: exxos, simonsunnyboy, Mug UK, Zorro 2, Moderator Team

User avatar
EmpireAndrew
Captain Atari
Captain Atari
Posts: 397
Joined: Fri Jul 15, 2016 5:46 pm
Location: NYC, USA

Writing apps that use TCP/IP

Postby EmpireAndrew » Sat Dec 17, 2016 11:36 pm

I want to write an app for the ST that would communicate over the internet, so basically I need to use TCP/IP.
I have a NetUSBee and have STing installed and can even use CAB to browse the web.

How do I use STing from my C app?

Is there a downloadable library and documentation?

:shrug:
1977 VCS Heavy Sixxer (Boxed)
1990 Atari 1040STE, 4MB, UltraSatan, TOS 2.06, TT Touch -> Atari SC1435 Colour CRT Monitor
1991 Atari TT030, 2/64MB, Int 8GB Gigafile SCSI2CF, TOS 3.06, CaTTamaran Accelerator -> Atari TTM195 19" Mono CRT Monitor
1993 Atari Falcon030, 14MB, Int 4GB IDE2SD, TOS 4.04 -> Atari PTC1426 Color CRT Monitor
Amiga, Mac, DOS, Newton, SGI, Sun, NeXTStation and more!

User avatar
iceman
Captain Atari
Captain Atari
Posts: 178
Joined: Sat Mar 02, 2013 11:03 pm

Re: Writing apps that use TCP/IP

Postby iceman » Sun Dec 18, 2016 12:44 am

In the full Sting installation, there are the header files and libraries you'll need to link to.

There is also some source code there for the ping application amongst others.
Atarian since 1989. Atari 1040STFM, 4MB 520STe with UltraSatan and Unitor N, A dodgy 1 MBSTe that bombs out after a few minutes, and a 14MB 48MHz Falcon 030 with NetUSBee and Soundpool 8 channel DAC. Plus my new MiST!

User avatar
EmpireAndrew
Captain Atari
Captain Atari
Posts: 397
Joined: Fri Jul 15, 2016 5:46 pm
Location: NYC, USA

Re: Writing apps that use TCP/IP

Postby EmpireAndrew » Sun Dec 18, 2016 12:44 am

It seems like the copy of StinG I downloaded for my netUSBee was incomplete, the full version of the archive should include dev docs including header file and an example ping program.

After about an hour and a half of searching the net I found the full download here (in case anyone wants this in future):

http://jfhaslam.atari.org/download.htm
1977 VCS Heavy Sixxer (Boxed)
1990 Atari 1040STE, 4MB, UltraSatan, TOS 2.06, TT Touch -> Atari SC1435 Colour CRT Monitor
1991 Atari TT030, 2/64MB, Int 8GB Gigafile SCSI2CF, TOS 3.06, CaTTamaran Accelerator -> Atari TTM195 19" Mono CRT Monitor
1993 Atari Falcon030, 14MB, Int 4GB IDE2SD, TOS 4.04 -> Atari PTC1426 Color CRT Monitor
Amiga, Mac, DOS, Newton, SGI, Sun, NeXTStation and more!

User avatar
EmpireAndrew
Captain Atari
Captain Atari
Posts: 397
Joined: Fri Jul 15, 2016 5:46 pm
Location: NYC, USA

Re: Writing apps that use TCP/IP

Postby EmpireAndrew » Sun Dec 18, 2016 12:45 am

Hah! What was the chance someone replied just as I figured that out! Thanks though!
1977 VCS Heavy Sixxer (Boxed)
1990 Atari 1040STE, 4MB, UltraSatan, TOS 2.06, TT Touch -> Atari SC1435 Colour CRT Monitor
1991 Atari TT030, 2/64MB, Int 8GB Gigafile SCSI2CF, TOS 3.06, CaTTamaran Accelerator -> Atari TTM195 19" Mono CRT Monitor
1993 Atari Falcon030, 14MB, Int 4GB IDE2SD, TOS 4.04 -> Atari PTC1426 Color CRT Monitor
Amiga, Mac, DOS, Newton, SGI, Sun, NeXTStation and more!

mikro
Atari God
Atari God
Posts: 1308
Joined: Sat Sep 10, 2005 11:11 am
Location: Brisbane, Queensland, Australia
Contact:

Re: Writing apps that use TCP/IP

Postby mikro » Fri Dec 23, 2016 6:28 am

If want to use modern gcc4 cross compiler, don't forget to use this header: https://mikro.atari.org/files/transprt.h -- it's a fixed file from the original distribution.


Social Media

     

Return to “C / PASCAL etc.”

Who is online

Users browsing this forum: No registered users and 2 guests