Which network library do you recommend? (Windows)
-
jimburnettva
- Posts: 13
- Joined: Fri Feb 19, 2010 5:07 pm
- Contact:
Which network library do you recommend? (Windows)
I searched for "networking" and "network libraries" and came up empty.
Linux is a no-brainer as I would just use UNIX sockets and be done with it. Not to mention all the native libraries out there.
For windows, I've been looking into few various methods.
I got namespace System::Net::Sockets working but that requires that I use C++/CLI which makes me feel dirty and it also makes it hard to port to Linux and back.
irrNet: no longer availible.
Practical C++ sockets: "Not for production use", stability issues
HawkNL : Change log hasn't change from 2004..?
irrNetLite looks interesting. Anyone got experience in this?
I suppose I could use Winsock....but then it's all jacked up for Linux...
Just looking for some advice.
Flame away and thanks in advance!
Linux is a no-brainer as I would just use UNIX sockets and be done with it. Not to mention all the native libraries out there.
For windows, I've been looking into few various methods.
I got namespace System::Net::Sockets working but that requires that I use C++/CLI which makes me feel dirty and it also makes it hard to port to Linux and back.
irrNet: no longer availible.
Practical C++ sockets: "Not for production use", stability issues
HawkNL : Change log hasn't change from 2004..?
irrNetLite looks interesting. Anyone got experience in this?
I suppose I could use Winsock....but then it's all jacked up for Linux...
Just looking for some advice.
Flame away and thanks in advance!
Re: Which network library do you recommend? (Windows)
Then just use winsock 2. It's native, and it's almost identical to Berkley (UNIX) sockets. Just build some wrapper classes and you'll be good to go. I'm not sure where you got the idea that it's so different from Linux.jimburnettva wrote:Linux is a no-brainer as I would just use UNIX sockets and be done with it. Not to mention all the native libraries out there.
For windows, I've been looking into few various methods.
Last edited by slavik262 on Tue Sep 07, 2010 8:09 pm, edited 1 time in total.
Re: Which network library do you recommend? (Windows)
Yep, I am using IrrNetLite for a project at the moment. It works like a charm and is easy to use. Check out the last page if you want it multithreaded (which I highly recommend).
Never take advice from someone who likes to give advice, so take my advice and don't take it.
-
jimburnettva
- Posts: 13
- Joined: Fri Feb 19, 2010 5:07 pm
- Contact:
Slave,
Winsock2 looks interesting. Is ws2_32.lib still used for linking?
Bate,
Does the IrrNL let you have access to the lower level methods? Currently I have 3D model information stored in a database and I populate my Scene with the information coming from that database.
I guess what I'm asking is, can I define my own packets and also use TCP/UDP combination (TCP for authentication, UDP for the hi-res data...) with IrrNL...
Winsock2 looks interesting. Is ws2_32.lib still used for linking?
Bate,
Does the IrrNL let you have access to the lower level methods? Currently I have 3D model information stored in a database and I populate my Scene with the information coming from that database.
I guess what I'm asking is, can I define my own packets and also use TCP/UDP combination (TCP for authentication, UDP for the hi-res data...) with IrrNL...
Note sure. It's been a while since I've done networking work, but Winsock has always met my needs.
Here's the documentation:
http://msdn.microsoft.com/en-us/library ... S.85).aspx
A good guide to getting started:
http://msdn.microsoft.com/en-us/library ... S.85).aspx
The BB treats the links weird. Make sure you include the "(VS.85).aspx" when you put in the URL.
Here's the documentation:
http://msdn.microsoft.com/en-us/library ... S.85).aspx
A good guide to getting started:
http://msdn.microsoft.com/en-us/library ... S.85).aspx
The BB treats the links weird. Make sure you include the "(VS.85).aspx" when you put in the URL.
Yep, you can easily extend it and add your own packets. Also, there is already a lot of irrlicht-related stuff built-in. IrrNet is based on enet which means UDP only.jimburnettva wrote:I guess what I'm asking is, can I define my own packets and also use TCP/UDP combination (TCP for authentication, UDP for the hi-res data...) with IrrNL...
Never take advice from someone who likes to give advice, so take my advice and don't take it.
i would suggest then irrNetLite or enet directly. bc then u can still create tcp connection pretty easily with the same system. and you don't have to worry about system dependens bc its crossplatform.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
RakNet ?
Oh and btw: Winsock is almost POSIX compatible. IIrc you have one or two things that don't exist in Winsock. Anyway porting posix sockets to windows and back involves about 5 minutes of googling and two or three #ifdef blocks in your code.
Oh and btw: Winsock is almost POSIX compatible. IIrc you have one or two things that don't exist in Winsock. Anyway porting posix sockets to windows and back involves about 5 minutes of googling and two or three #ifdef blocks in your code.
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
-
jimburnettva
- Posts: 13
- Joined: Fri Feb 19, 2010 5:07 pm
- Contact:
Yeah I just made my own C++ wrappers around Winsock2 and then when I compile on Linux is super easy to re-compile.
Thanks for the replys!
(p.s. I don't get email notifications from this site, something messed up?)
Thanks for the replys!
(p.s. I don't get email notifications from this site, something messed up?)
Sylence wrote:RakNet ?
Oh and btw: Winsock is almost POSIX compatible. IIrc you have one or two things that don't exist in Winsock. Anyway porting posix sockets to windows and back involves about 5 minutes of googling and two or three #ifdef blocks in your code.
Just to mention it - there is also boost::asio. Not exactly the easiest to use, but one of the things it offers are wrappers around the sockets libraries on each OS.
And about email notifications - sorry, we can't do those on SF-forums.
And about email notifications - sorry, we can't do those on SF-forums.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
