
-----------------------------------
deltamanx
Wed Jan 06, 2010 12:17 am

Looking for Turing Command to send variables to server via internet
-----------------------------------
Hello there,
    I'm attempting to make a code that would get the user's username and password (which I succeded at), and then send those creditentials over to a server
where they could be compared with a list of account, if it exist and the username/password entered was correct to log the person into the program.
The problem I'm facing is making the actual code to send the variables (username/password) over to the server, and then for the server to send a reply.
If this helps; I am using turing version 4.1.1, and understand the fact that I will need to put the two parts (server and client) into two different programs.
If any one could assist me, I'd be very grateful.
deltamanx.

-----------------------------------
DemonWasp
Wed Jan 06, 2010 2:00 am

RE:Looking for Turing Command to send variables to server via internet
-----------------------------------
Look at the example code Turing Help on the Net module. Be forewarned: Turing is horrendously bad at networking.

-----------------------------------
mirhagk
Wed Jan 06, 2010 7:20 am

RE:Looking for Turing Command to send variables to server via internet
-----------------------------------
you can only send data over a local network, and you need the ip of the server, which may be difficult at school where the server could not stay running all the time.

Personally I'd suggest just using an encrypted file and decrypt the user names and passwords to compare it. As long as you encrypt it pretty good, most people would be unable to *hack* it.

-----------------------------------
deltamanx
Wed Jan 06, 2010 2:22 pm

Re: Looking for Turing Command to send variables to server via internet
-----------------------------------
For those who didn't completely understand:
I'm hosting the server with a turing application.
I need to make a turing application that will connect to said server.
Here's a bit of server code:
[code]
var userName, passWord : string := "null"
const ClientPort : int := 5055
const ClientIP : string := "127.0.0.1"
~~~
~~~
~~~
    put "Checking connection (This may take a while.) = " ..
    delay (500)
    net := Net.OpenConnection (RSClientIP, RSClientPort)
    if net 