when UDP in wxWidgets? Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
ghostd0g
Experienced Solver
Experienced Solver
Posts: 58
Joined: Wed Oct 19, 2005 3:58 pm

when UDP in wxWidgets?

Post by ghostd0g »

does anybody have an idea when (and if) UPD transmissions will officially be implemented in wxWidgets?
i searched the forum and the mailing lists and i only read that people use the undocumented wxDatagramSocket for UDP connections since wxWidgets v2.5x ...

thanks for any information and a happy new year
ghostd0g
phlox81
wxWorld Domination!
wxWorld Domination!
Posts: 1387
Joined: Thu Aug 18, 2005 7:49 pm
Location: Germany
Contact:

Post by phlox81 »

Might wanna take a look at the ASIO Library.
Its probably includet in boost soon. And it seems to be able
to handle TCP and UDP Sockets.
leio
Can't get richer than this
Can't get richer than this
Posts: 802
Joined: Mon Dec 27, 2004 10:46 am
Location: Estonia, Tallinn
Contact:

Post by leio »

wxDatagramSocket works perfectly (or mostly) fine with even extensive usage, as proven by aMule. Now if it would also be documented...
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD

Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
ghostd0g
Experienced Solver
Experienced Solver
Posts: 58
Joined: Wed Oct 19, 2005 3:58 pm

Post by ghostd0g »

thx leio and phlox81.

ASIO looks very interesting. that exaclty is what i've looked for in the first place. maybe i'll take a look at x- and a-mule too.

anyway, any official news regarding future wxWidget versions?! i assume the unofficial wxDatagramSocket way won't satisfy everyone since it is totally undocumented.
leio
Can't get richer than this
Can't get richer than this
Posts: 802
Joined: Mon Dec 27, 2004 10:46 am
Location: Estonia, Tallinn
Contact:

Post by leio »

I'll bug aMule lead to document it soon, as he promised ;)
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD

Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
qgranfor
Experienced Solver
Experienced Solver
Posts: 89
Joined: Sun Aug 29, 2004 7:32 pm
Location: ND...USA
Contact:

Post by qgranfor »

If you just want UDP you might want to look into RakNet cross-platform libarary. It's very much in active development, very easy to use and has options to help with the pitfalls of UDP such as packet ordering and reliable transmission.
madhan
Earned a small fee
Earned a small fee
Posts: 15
Joined: Mon May 30, 2005 4:05 am

Post by madhan »

UDP works fine in wxWidgets, I have used it quite a bit with sucess.
Try using it.
ghostd0g
Experienced Solver
Experienced Solver
Posts: 58
Joined: Wed Oct 19, 2005 3:58 pm

Post by ghostd0g »

@leio:
this would be great.

@qgranfor:
thx, i already thought about raknet since it got very good reviews from several sites. but i'd like to stay to wx since i use the gui-portion anyway.

@madhan:
after trying and some searching through the forums i got it working. it's really easy and straightforward (if you know what you do). what a pity this isn't documented at all. someone should write a wiki-entry. maybe i'll do ...
Post Reply