Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, October 2006
[OT] Qt-3 and networking (udp)


Message 1 in thread

Hello!
What are opportunities for developers to implement cross-platform udp
networking ? Are they limited to Qt only? Are there other open-source
libraries that can be used in couple with Qt?
I'm new to cross-platform network programming and searching for "best choice".

--
 [ signature omitted ] 

Message 2 in thread

ÐÐÑÐÐÐÐÐ, ÐÐÐÑÑÐÐ wrote:
> Hello!
> What are opportunities for developers to implement cross-platform udp
> networking ? Are they limited to Qt only? Are there other open-source
> libraries that can be used in couple with Qt?
> I'm new to cross-platform network programming and searching for "best 
> choice".

AFAIK boost (boost.org?, boost.net?) offers some networking libraries. 
Boost is also meant to be cross-platform, though it requires newer 
compilers. Usually no problem on Linux/Windows, but on some older Unix 
you might hit the limits of some older (native) compilers regarding 
their support for STL...

Cheers, oliver

--
 [ signature omitted ] 

Message 3 in thread

Till Oliver Knoll wrote:
> ÐÐÑÐÐÐÐÐ, ÐÐÐÑÑÐÐ wrote:
> 
>> Hello!
>> What are opportunities for developers to implement cross-platform udp
>> networking ? Are they limited to Qt only? Are there other open-source
>> ...
> AFAIK boost (boost.org?, boost.net?) offers some networking libraries. 

Hmmm it is really boost.org (guess what: boost.net and boost.com also 
exist), but the closest I came to networking are the boost iostreams 
which also work over TCP (haven't seen anything about UDP yet):

   http://www.boost.org/libs/iostreams/doc/index.html

I know there are people on this list using boost (it's quite common when 
using C++ and it works well with Qt); they might know more about using 
boost regarding networking.

Also there is the SDL which is also cross-platform (Unix/Linux, Windows, 
Mac)

   http://www.libsdl.org/index.php

(again: don't get confused by libsdl.com ;) which I know has also a 
network library (somewhat less abstract than the boost iostreams and 
hence more what you're looking for). SDL was actually meant to be for 
games (like DirectX, just platform-independent), but I guess their 
networking stuff can also be used in other kind of applications...


Good luck, Oliver

--
 [ signature omitted ] 

Message 4 in thread

Till Oliver Knoll wrote:
> Till Oliver Knoll wrote:
> 
>> ÐÐÑÐÐÐÐÐ, ÐÐÐÑÑÐÐ wrote:
>>
>>> Hello!
>>> What are opportunities for developers to implement cross-platform udp
>>> networking ? Are they limited to Qt only? Are there other open-source
>>> ...
>>
>> AFAIK boost (boost.org?, boost.net?) offers some networking libraries. 

Well seems like it doesn't (see other posting by Duane).

> ... 
> Also there is the SDL which is also cross-platform (Unix/Linux, Windows, 
> Mac)
> 
>   http://www.libsdl.org/index.php
> 
> (again: don't get confused by libsdl.com ;) which I know has also a 
> network library (somewhat less abstract than the boost iostreams and 

It is available here:

   http://www.libsdl.org/projects/SDL_net/

There's even an implementation for the PlayStation2 ;)


Cheers, Oliver

--
 [ signature omitted ] 

Message 5 in thread

On 03/10/06, Till Oliver Knoll <oliver.knoll@xxxxxxxxxxx> wrote:
> Till Oliver Knoll wrote:
> It is available here:
>
>   http://www.libsdl.org/projects/SDL_net/

I've also been advised to use berkley sockets. This thing seems to be
from higher level.

--
 [ signature omitted ] 

Message 6 in thread

ÐÐÑÐÐÐÐÐ, ÐÐÐÑÑÐÐ wrote:
> On 03/10/06, Till Oliver Knoll <oliver.knoll@xxxxxxxxxxx> wrote:
> 
>> Till Oliver Knoll wrote:
>> It is available here:
>>
>>   http://www.libsdl.org/projects/SDL_net/
> 
> 
> I've also been advised to use berkley sockets. This thing seems to be
> from higher level.

"Berkeley" (AKA "BSD sockets") are a Unix way of implementing sockets: 
they mimik the behaviour of traditional file descriptors; that means you 
can also call read/write on them, just like on an ordinary file 
descriptor (instead of send/receive).

That's not a higher level, in contrast: that's more low-level (we're 
really talking about system calls like socket() etc.) and is very 
system/Unix-specific! You won't get to compile such a program on Win32! 
That's why there exist higher level APIs such as Qt Network which 
implement their functionality using "Berkeley sockets" or WinSock on 
Win32, roughly said...

Cheers, Oliver

--
 [ signature omitted ] 

Message 7 in thread

"Till Oliver Knoll" <oliver.knoll@xxxxxxxxxxx> wrote in message 
news:4522323B.5070703@xxxxxxxxxxxxxx
> ????????, ??????? wrote:
>> Hello!
>> What are opportunities for developers to implement cross-platform udp
>> networking ? Are they limited to Qt only? Are there other open-source
>> libraries that can be used in couple with Qt?
>> I'm new to cross-platform network programming and searching for "best 
>> choice".
>
> AFAIK boost (boost.org?, boost.net?) offers some networking libraries. 
> Boost is also meant to be cross-platform, though it requires newer 
> compilers. Usually no problem on Linux/Windows, but on some older Unix you 
> might hit the limits of some older (native) compilers regarding their 
> support for STL...

I don't know of any boost network libraries.  There was some
group working on sockets implemented as streams but it
hasn't been accepted yet AFAIK.  Not sure if it's still in
the works though. 


--
 [ signature omitted ] 

Message 8 in thread

On Oct 3, 2006, at 6:11 AM, Duane Hebert wrote:

> I don't know of any boost network libraries.

Boost Asynchronous IO library:

     http://asio.sourceforge.net/

It has been accepted for a future Boost release.

Brad

-- 
 [ signature omitted ] 

Message 9 in thread

On Oct 3, 2006, at 3:15 AM, ÐÐÑÐÐÐÐÐ, ÐÐÐÑÑÐÐ wrote:

> What are opportunities for developers to implement cross-platform udp
> networking ? Are they limited to Qt only? Are there other open-source
> libraries that can be used in couple with Qt?
> I'm new to cross-platform network programming and searching for  
> "best choice".

I'm currently using the ACE library (http://www.cs.wustl.edu/~schmidt/ 
ACE.html) together with Qt 4.1. I'd give some serious look at the  
Boost ASIO library (http://asio.sourceforge.net/). Depending on your  
application, you may want to look at Spread as well (http://spread.org).

Brad

-- 
 [ signature omitted ]