Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
49 user(s) are online (40 user(s) are browsing Forums)

Members: 0
Guests: 49

more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: Quick networking question

Subject: Re: Quick networking question
by broadblues on 2019/4/1 10:45:29

@Hans


Answred there:

Quote:


If you are coding on AmigaOS4 and don't require backwards compatabilty the easiest solution is to use the interface.

ie

definetly bsdsocket

ISocket->connect()

Otherwise it's being careful about how you order your includes.

Just adding

#include <proto/bsdsocket.h>

Should be enough in most cases as that wil pull in the inlines and those will replace the functions call with macros referenceing ISocket or SocketBase depending on the target (AmigaOS4 or 68k).

It's little easier to be certain with clib2 as there is a separate libnet.a so not linking against that will give erreors if you messed up your inlcudes.


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project