Page 1 of 1

[Implemented] please get rid of server port restriction

Posted: Thu Aug 07, 2003 7:06 pm
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

Posted: Fri Aug 08, 2003 7:37 am
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

example?

Posted: Fri Aug 08, 2003 4:18 pm
by DoubleDutch
is it possible for you to show a small example of what you mean?