Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TCP/IP. data from one program to another
#8
Hi TheLastMan 
do you have a pizza?
What kind of pizza?

Welcome in QB64pe forum!

I have little experience in TCP/IP because I'm studing it but it seems well supported in QB64pe.

here a seach in the forum 
search for TCP/IP posts

youl'll find the demo of SmcNeill for a banner walking between two windows, other code stuff and some my simple code, both in programs and in games of the section code and stuff.

I found some conceptual bugs into your code... 
  • but as first I must let see you that the Client output is a fake output, you print the client variables just after sent the request of data, no time for the system to process the TCP/IP communication with the server!
  • About code, if you like keywords UPPERCASE it is ok, I find overwelming the use of that you know is useful in OLD QBasic to write a line too long ( peharps more than 255 characters), but this limit is no present in QB64pe!
  • about commands:
             GSL Game Send Long
             GRL Game Received Long
             GSD Game Send Double
             GRF Game Received Double (?? F for what?)

about this stuff:
Code: (Select All)
 Z = UBOUND(SENDEDLONGSG): _
                    if Z <> D then: FOR x = 0 TO Z STEP 1: SWAP SENDEDLONGSG(D), SENDEDLONGSG(x): NEXT: _
                    REDIM _PRESERVE SENDEDLONGSG(Z - 1):  'GAME RECEIVE LONG
it seems to me that your goal is to have a LIFO stack...
  but 
      1. SENDEDLONGSD() starts from 1 not from 0 so the FOR must start from 1
       2. you must assure that z-1 is never <=0 or the index of your array will shift in the negative values during the run of the program.


[Image: Output-TCP-IP-demo.png]
Reply


Messages In This Thread
RE: TCP/IP. data from one program to another - by TempodiBasic - 03-04-2025, 12:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  where can I get more info about TCP/IP in QB64? TempodiBasic 4 1,114 08-02-2024, 08:51 AM
Last Post: TempodiBasic

Forum Jump:


Users browsing this thread: 1 Guest(s)