Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Connecting to an Established Server

  1. #11
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Connecting to an Established Server

    Hi,

    I can confirm, 57 is "Device I/O" error I think.
    Could it mean "blocked by firewall"?


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  2. #12
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Connecting to an Established Server

    I don't know how to do server in ThinBASIC,
    so I created one in PowerBASIC, and made it talk with ThinBASIC, so you can try here.

    How to use:
    • Run TcpServerTest.exe ( Windows firewall might complain, click "Unblock" )
    • Run TcpClientTest.tbasic


    Please run TcpServerTest.exe first, else you will get error 57!


    Petr
    Attached Files Attached Files
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  3. #13

    Re: Connecting to an Established Server

    Hi Peter,

    welcome to the forum.

    Petr, is it really possible to have two thinBasic scripts running at the same time?

  4. #14
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Connecting to an Established Server

    Hi Mike,

    I am not sure I understand the question

    You just execute the EXE, let it run, and then run the script, as seen on picture
    Attached Images Attached Images
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  5. #15

    Re: Connecting to an Established Server

    Yes I see. But you mentioned a server done in thinBasic. So a client and a server running at teh same time on one computer. Is that possible?

  6. #16

    Re: Connecting to an Established Server

    Forget it, works.

  7. #17
    thinBasic MVPs
    Join Date
    May 2007
    Location
    UK
    Posts
    1,427
    Rep Power
    159

    Re: Connecting to an Established Server

    Thanks Petr I had brain block going on. Of course it needed a server. DOH!

    Mike if you look at the UDP samples it required two scripts running a server and a client but I suspect thats what your previous post refered to.
    Home Desktop : Windows 7 - Intel Pentium (D) - 3.0 Ghz - 2GB - Geforce 6800GS
    Home Laptop : WinXP Pro SP3 - Intel Centrino Duo - 1.73 Ghz - 2 GB - Intel GMA 950
    Home Laptop : Windows 10 - Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 2401 Mhz, 2 Core(s), 4 Logical Processor(s) - 4 GB - Intel HD 4400
    Work Desktop : Windows 10 - Intel I7 - 4 Ghz - 8GB - Quadro Fx 370

  8. #18

    Re: Connecting to an Established Server

    Quote Originally Posted by Michael Clease
    Thanks Petr I had brain block going on. Of course it needed a server. DOH!

    Mike if you look at the UDP samples it required two scripts running a server and a client but I suspect thats what your previous post refered to.
    Yes, I looked at them.

  9. #19

    Re: Connecting to an Established Server

    Hi Folks,

    Thank you for the welcomes to the forum.

    Michael and Petr, your client programs worked like a charm. They opened a connection to the database and I was able to send and receive data. Thank you.

    At first I was receiving error messages from the database, but at least the database was talking to me. I had to play with the database comms settings to get it to work properly, but at last I am receiving the initial response I was looking for.

    I can now polish the login process up, and then progress to the next step - controlling the database from within thinBasic.

    Thanks also to everyone else who responded.

    thinBasic appears to be ideal for what I am trying to do. Top marks to all of you who contributed (and are contributing) to its development.

    Because it is a new environment for me, I may yet need to ask the odd question or two (or three, or four, ....) in the future.

    I hope that one day I may be able to return the favour by offering help to others.

    Kind regards,

    Peter H.
    Thought for the day (in a broad Australian accent):<br />First of all yer gungadin. Afterwards yer gungadout.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Web server restart
    By ErosOlmi in forum Web and Forum
    Replies: 1
    Last Post: 29-01-2010, 23:51
  2. ThinBASIC COM Server
    By RobertoBianchi in forum Announcements
    Replies: 18
    Last Post: 31-07-2008, 16:15

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •