22 April 2018, 00:18 | #1 |
Registered User
Join Date: Mar 2012
Location: Norfolk, UK
Posts: 1,153
|
Confused about Socket programming and UAE / FSUAE
I have a project that's going to involve TCP/IP socket comms between an Amiga and a Linux host, and never having done any TCP/IP programming on the Amiga before, I'm trying to figure out what I need.
I'm using VBCC as a cross-compiler, Linux hosted, and want to use UAE or FS-UAE to test and debug. I downloaded the AmiTCP devkit from Aminet, and can compile the httpget example, but both the resulting binary and the pre-built binaries in the devkit fail under both UAE and FS-UAE, complaining that they can't open bsdsocket.library. Yet under both emulators, network software such as iBrowse, AWeb, YAM, etc. works just fine. Can anyone give me any hints here? |
22 April 2018, 13:49 | #2 | |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
Quote:
I’m interested in this also but from an assembly point of view. Basically, if my bomb jack game detects my remote linux server over tcp/ip then i want to send over the hi-scores. I’ll start looking into this soon. |
|
22 April 2018, 15:02 | #3 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,515
|
Perhaps they want higher bsdsocket.library version? Attach or upload small example executable.
|
22 April 2018, 15:17 | #4 |
Registered User
Join Date: Mar 2012
Location: Norfolk, UK
Posts: 1,153
|
Thanks for the responses - the example code in the AmiTCP dev kit asks for version 4, but changing that to 0 makes no difference. Example code attached:
Code:
#include <stdio.h> #include <exec/types.h> #include <proto/exec.h> struct Library *SocketBase; int main(int argc,char **argv) { SocketBase=OpenLibrary("bsdsocket.library",0); if(SocketBase) printf("Successfully opened bsdsocket.library\n"); else printf("Failed to open bsdsocket.library\n"); return(0); } I haven't had a chance to test with WinUAE yet - this is with Linux UAE and FSUAE. |
22 April 2018, 16:08 | #5 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,515
|
Works for me (succesfully opened...)
There should not be any functional difference between different UAE variants in bsdsocket.library emulation. |
23 April 2018, 00:07 | #6 |
Registered User
Join Date: Mar 2012
Location: Norfolk, UK
Posts: 1,153
|
Thanks for testing. I've found the source of the problem - it turns out the version of uae I'm using doesn't have bsdsocket support compiled in (and I hadn't found the user-interface option to enable it on fs-uae). Under both environments IBrowse was appearing to work because there was a years-old copy of google.com in its cache, which hadn't been flushed because I don't have rtc emulation enabled!
Doh! Thanks again for responding - sorry for the false alarm. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OS4.1FE and latest stable FSUAE under macOS >issue< | pixelsmack | support.FS-UAE | 3 | 01 August 2017 15:38 |
FS-UAE 2.4.1 + OAGD.net (I'm confused) | Xorcist | support.FS-UAE | 3 | 24 April 2015 11:24 |
whdload via <config>.fsuae file? | Mousey | support.FS-UAE | 10 | 16 December 2014 14:29 |
FSUAE arcade problems | zubaran | support.FS-UAE | 0 | 19 September 2014 13:16 |
UAE questions (Programming) | xArtx | support.OtherUAE | 2 | 12 June 2013 09:13 |
|
|