[Implemented] please get rid of server port restriction

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

[Implemented] please get rid of server port restriction

Post by DoubleDutch »

Is it possible for a future version of PureBASIC to support more than
one server - "However, there can only one Server be started from every
Pb program"

This would allow me to write an email program with pop3/smtp
interface, http server with admin port, etc...

It would make it a much more powerful feature. :D
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Post by Tranquil »

Hi!

It IS possible to create more then one server in one PB instance.
You only have to do your EventHandling for networking in your Window-CallBack.

Use WSAAsyncSelect_() to assign a several #WM_USER+x Message to every server, so you can catch different events from then easily!


Ive tried it and it works fine.

Greets
Mike
Tranquil
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

example?

Post by DoubleDutch »

is it possible for you to show a small example of what you mean?
Post Reply