Author Topic: Internet usage of Input, Print, get and put  (Read 3203 times)

0 Members and 1 Guest are viewing this topic.

Offline Parkland

  • Newbie
  • Posts: 51
    • View Profile
Internet usage of Input, Print, get and put
« on: April 19, 2020, 08:05:49 pm »
OK So I'm tring to get Input / Print work (and I can't), so I'm reading through QB64 help index at statements for ideas what I'm doing wrong, and I come across this:

Input/ Print TCP/IP statements in QB64 help:
Availability:
 Version 0.954 and older.
For version 1.000 and up use GET/PUT TCP/IP statements

Does that mean using PRINT, INPUT isn't supported for TCP/IP fine handles in version 1.4 ?



FellippeHeitor

  • Guest
Re: Internet usage of Input, Print, get and put
« Reply #1 on: April 19, 2020, 08:11:19 pm »
PRINT and INPUT for TCP/IP access were experimental in pre 1.0 beta versions and never made it to the official 1.0 release. Info was still on the wiki for historical purposes and for all other network communications PUT and GET should be used.
« Last Edit: April 19, 2020, 08:51:47 pm by FellippeHeitor »

Offline Parkland

  • Newbie
  • Posts: 51
    • View Profile
Re: Internet usage of Input, Print, get and put
« Reply #2 on: April 19, 2020, 08:23:52 pm »
Ah that makes sense.

In QB64 help also, under GET or PUT TCP/IP, it states that the TCP/IP stream data may arrive fragmented/ out of order etc.
Was this in error, and GET and PUT are UDP mode commands?
Or is this TCP but errors are possible?

FellippeHeitor

  • Guest
Re: Internet usage of Input, Print, get and put
« Reply #3 on: April 19, 2020, 08:25:58 pm »
The TCP protocol has its peculiarities. I recommend studying this article: https://www.qb64.org/forum/index.php?topic=2378.0

Offline Parkland

  • Newbie
  • Posts: 51
    • View Profile
Re: Internet usage of Input, Print, get and put
« Reply #4 on: April 19, 2020, 08:40:24 pm »
I have read that, which is why I was confused;
As it says; "Guaranteed that data arrives" I can say seems to hold true as long as it is received as fast as it is sent.
Also it appears to arrive in order and error free from what I can tell so far.
The literature in QB64 help in the program says data may arrive at different times, so that's still slightly confusing.

But, it does seem to work, like I said as long as data isn't sent faster than received.