[Implemented] UDP

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Iria
User
User
Posts: 43
Joined: Sat Nov 29, 2003 8:49 pm

[Implemented] UDP

Post by Iria »

While I'm here :) I might as well ask for a decent cross platform set of UDP commands to complement the TCP ones already provided (Clearly without any connect commands :o )

It would also be nice to have multiple port listening so I can have one application listening on more than one local port.

From a syntax point of view it may be as simple as changing NetworkServerEvent to specify a port to catch events on:

Code: Select all

CreateNetworkServer(DataPort)
CreateNetworkServer(CmdPort)

DataPortEvents = NetworkServerEvent(DataPort)
CommandPortEvents = NetworkServerEvent(CmdPort)
Some nice to haves on the networking front would be some RFC 792 ICMP commands like 'PING'

Just some more suggestions :)
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

--Kale

Image
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Post by Danilo »

@Kale:
Supported OS: Windows
cya,
...Danilo
...:-=< http://codedan.net/work >=-:...
-= FaceBook.com/DaniloKrahn =-
Iria
User
User
Posts: 43
Joined: Sat Nov 29, 2003 8:49 pm

Linux, ahem LINUX :)

Post by Iria »

Not wanting to harp on about this, but PB has a small number of killer 'Unique Selling Points' for me:

Cross Platform
Basic Syntax
Flexability in working with standard Libraries

The more time I spend actually writting cross platform code the more I realise how Windows centric PB is, its endemic, even following the recent Linux upgrade to 3.81 its still a poor cousin to the windows version, from the product to the external PureBasic libraries. To the lack of a Linux Visual Designer or even a KDE/Gnome editor! (I use Vim btw)

Dont get me wrong its still very usable for linux in its current form, (Read Linux 3.81 version).

The issues I typically face are the lack of community support for PB Linux, specifically in cross platform PureLibrary publication but also simple stuff like the PB documentation, for example, treegadget in the PB documentation is a Windows only gadgets (Ahem...its not) my point is I would like to see future enhancements consider the Linux side because I see it as one of the biggest assets PB can offer.

So thank you for the Windows API pointers for a UDP library. If someone could write that for Linux and then work there way through the rest of the community public PureBasic Libraries I'd shut up :)

Regards
Post Reply