Author Topic: How to send and receive data via internet?  (Read 2111 times)

0 Members and 1 Guest are viewing this topic.

Offline Donald Foster

  • Newbie
  • Posts: 63
    • View Profile
How to send and receive data via internet?
« 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

Offline Unseen Machine

  • Forum Regular
  • Posts: 158
  • Make the game not the engine!
    • View Profile
Re: How to send and receive data via internet?
« Reply #1 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

Offline 40wattstudio

  • Newbie
  • Posts: 82
    • View Profile
    • 40wattstudio
Re: How to send and receive data via internet?
« Reply #2 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)

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: How to send and receive data via internet?
« Reply #3 on: April 11, 2020, 09:16:21 pm »
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline Donald Foster

  • Newbie
  • Posts: 63
    • View Profile
Re: How to send and receive data via internet?
« Reply #4 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