PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: TCP like that 32-bit BASIC we used before?  (Read 343 times)

Bruce Huber

  • Little Newbie
  • *
  • Posts: 29
TCP like that 32-bit BASIC we used before?
« on: March 28, 2020, 08:53:35 PM »

Hi Josť, you had spoken of it in the past, and I was wondering if you were still thinking of building a TCP lib like the one in PB?

Bruce (me) / networking / FreeBASIC ... these things do *NOT* go well together! I could stumble along in PowerBASIC fairly well, but I haven't ever been able to get any networking code working in FB, even though all I need is simple TCP client/server stuff.

By the way, I never had reason to utilize the COM interfaces, libraries and other pieces of code that I saw you create for use with PowerBASIC... and while I'm not smart enough to put the pieces together, I'm smart enough to know how they work and to understand what you've accomplished... and I'm simply in awe!  Your kung-fu is amazing!

Thanks!
Bruce
Logged

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 9287
  • Windows 10
    • PlanetSquires Software
Re: TCP like that 32-bit BASIC we used before?
« Reply #1 on: March 28, 2020, 09:42:32 PM »

I believe that the last time that I had occasion to use TCP, I used the very library by D J Peters: https://www.freebasic.net/forum/viewtopic.php?f=7&t=23421&p=207304
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Josť Roca

  • Moderator
  • Guru Member
  • *****
  • Posts: 3268
Re: TCP like that 32-bit BASIC we used before?
« Reply #2 on: March 28, 2020, 10:16:14 PM »

I never have used TCP with PowerBasic because it does not work with htpps sites. With FreeBasic, I use my CWinHttpRequest Class. See: https://github.com/JoseRoca/WinFBX/blob/master/docs/COM/CWinHttpRequest%20Class.md


BTW forgive me if I don't post more replies, but I need countless attempts to read or post. I have run Windows diagnostics and it doesn't find any problems in my computer:

The remote computer is not responding to connections on port 443, possibly because of security or firewall policy settings, or because it is temporarily unavailable. Windows could not find a problem with your computer's firewall.

« Last Edit: March 28, 2020, 10:34:44 PM by Josť Roca »
Logged

Josť Roca

  • Moderator
  • Guru Member
  • *****
  • Posts: 3268
Re: TCP like that 32-bit BASIC we used before?
« Reply #3 on: March 28, 2020, 10:43:59 PM »

It is working now. Let's hope it lasts.

Bruce Huber

  • Little Newbie
  • *
  • Posts: 29
Re: TCP like that 32-bit BASIC we used before?
« Reply #4 on: March 28, 2020, 11:12:06 PM »

Wow, Paul! Thanks! I don't know how I've missed Joshy's SNC thing all this time, but that made it really easy to set up a simple TCP client/server in about 5 minutes! That is just what this dummy needed!

And Josť, your class looks way cool and easy enough for me to use! I have a couple of client-side HTTP ideas that I can think about trying out now!

Thanks a *LOT* you guys!!
Bruce
Logged

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 9287
  • Windows 10
    • PlanetSquires Software
Re: TCP like that 32-bit BASIC we used before?
« Reply #5 on: March 29, 2020, 08:47:36 AM »

I never have used TCP with PowerBasic because it does not work with htpps sites. With FreeBasic, I use my CWinHttpRequest Class. See: https://github.com/JoseRoca/WinFBX/blob/master/docs/COM/CWinHttpRequest%20Class.md
Silly me - I use that class as well in WinFBE for checking the server to check or program updates.
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 9287
  • Windows 10
    • PlanetSquires Software
Re: TCP like that 32-bit BASIC we used before?
« Reply #6 on: March 29, 2020, 08:49:02 AM »

It is working now. Let's hope it lasts.

Happy to hear that it is working again! I'd certainly miss not having you around here. Hopefully the problems won't crop up again.
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 9287
  • Windows 10
    • PlanetSquires Software
Re: TCP like that 32-bit BASIC we used before?
« Reply #7 on: March 29, 2020, 09:06:18 AM »

You've probably already seen TJF post this on the FB forum but here is his package based on SNC: https://www.freebasic.net/forum/viewtopic.php?f=8&t=24133
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer