QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: Donald Foster on April 11, 2020, 07:04:42 pm

Title: How to send and receive data via internet?
Post by: Donald Foster on April 11, 2020, 07:04:42 pm
Hello Everyone,

I don't know if anyone has covered this topic, but does anyone have any sample program(s) that covers this topic. I'm interested in trying to incorporate into my games for Internet Play.

Thanks, Donald
Title: Re: How to send and receive data via internet?
Post by: Unseen Machine on April 11, 2020, 07:17:10 pm
Quote
I'm interested in trying to incorporate into my games for Internet Play.

Well QB64 has some commands (look up _OPENHOST in the wiki) but they are far from ideal for use in games mainly cause it's limited to using TCP/IP. I made a wrapper for SFML to harness some of it's UDP features but my wrapper was limited by not being able to define ones own packets wihout messing with the C++ code.

Hope it helps

Unseen
Title: Re: How to send and receive data via internet?
Post by: 40wattstudio on April 11, 2020, 08:28:32 pm
I'd be interested in knowing how to get a Qbasic program to play in a web browser as well. Maybe this could be a feature for QB64 v1.6? (probably too late for v1.5)
Title: Re: How to send and receive data via internet?
Post by: SMcNeill on April 11, 2020, 09:16:21 pm
https://www.qb64.org/forum/index.php?topic=1901.0 -- Give this topic a browse.
Title: Re: How to send and receive data via internet?
Post by: Donald Foster on April 11, 2020, 10:08:58 pm
To All,

Thank you all for the information. I'll be some time trying to get a handle on how this may work.

Thanks again, Donald