Hi there,
I would like to know how to access internet with a easy C++-program. I'd need it for my AI I'm programming at the moment...
Thanking you in anticipation,
FlashDrive
"Internet Access" is provided through "network sockets" which is provided through an API provided by the OS the application is running on. There are various solutions for cross-platform solutions such as Boost.ASIO, a basic wrapper around WinSock, and many others.
Beej's guide sucks and is rather outdated last time I checked. I would suggest trying a wrapper over BSD sockets rather than using BSD sockets directly anyways as BSD sockets proves to be unintuitive now a days.
Eh... using synchronous ASIO which is what I'm familiar with, here's a basic example of an echo server below (which is VERY NAIVE and probably isn't the way to go about network IO):