View Full Version : Network DLL (Pure Basic)
Centauri Soldier
01-05-2009, 06:20 PM
Anyone have a take on this? Once this is done, everyone else will have access to it so the more help I get for the project, the faster it will be out. This will be combined with my function that returns the user's global IP to make web hosting possible.
http://www.purebasic.fr/english/viewtopic.php?t=35946 (http://www.purebasic.fr/english/viewtopic.php?t=35946)
Centauri Soldier
01-19-2009, 07:39 PM
Hey guys, I gotta ask again as I've been after an answer for months now. I've been on several different forums, read for hours in tech manuals yet the problem persists.
I cannot seem to find a way to make two programs communicate across the internet. The network dll would work fine but I can't get the code to work. Any Ideas?
Dermot
01-19-2009, 07:56 PM
Luasockets is your best bet I think. There is an example project from version 6 floating around.
Another thought would be to use HTTP actions to submit info to a database, and have another app use HTTP to read from that database, and vice-versa
Centauri Soldier
01-19-2009, 10:48 PM
Or worm could build a Network DLL and we could all pay him $20 each to download it :D.
I wish I had the time to work on projects like that... too much going on the life of Brad right now to be able to dedicate much time to any one particular thing. Maybe one of the forum wizards will wave a magic wand and come up with something :yes
RizlaUK
01-20-2009, 07:32 AM
forget it, if it was possible to make a network dll then dont you think i would have made it ages ago
theres just no way to keep the dll open to recive network events, you can open a connection and send data, but you can not keep a connection open
there are other ways tho, and im sure someone is working on a NetWork plugin ;)
im sure someone is working on a NetWork plugin ;)
That would be "purely" amazing
Centauri Soldier
01-20-2009, 05:11 PM
...theres just no way to keep the dll open to recive network events, you can open a connection and send data, but you can not keep a connection open...
That's the problem I've had with PureBasic. You can open the DLL, call it for a network connection but then the connection dies by the time the program calls the next procedure and you're left with an empty ConnectionID.
Well, I think that there might be a way to do it with lua socket but that is, for the time being, beyond my skill level.
TimeSurfer
01-24-2009, 12:58 PM
I have played with purebasics network capabilities in the past...and I concur with the others it is not possible to make the dll maintain a connection for any lengthy period of time..the only way around this would be to redo the network code and base it as an application...or use luasockets...maybe someday one of the developers will include network capabilites into APMS but until then these are pretty much your only options.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.