Telnet Session

Jeffrey Reynolds jeff at siphonophore.com
Fri Jun 30 11:07:34 EDT 2006


Sarah,

thanks very much, i thought it would be something like you have  
outlined, ill paw through your stacks and beat on things a while! If  
anyone else has any Telnet session pointers i would be glad to hear  
them!

thanks again!

jeff


On Jun 30, 2006, at 1:27 AM, use-revolution-request at lists.runrev.com  
wrote:

> Hi Jeff,
>
> I would use Terminal first to establish the comms and work out what
> commands you need to send and what data you expect to get back. To do
> this, open the Terminal program (it's in Applications/Utilities) and
> type "telnet " followed by the IP address of the server, and press
> Return. Hopefully this will get you to where you can log in and do
> stuff.
>
> Once you have that worked out, you will need to implement the Rev side
> of things, which you can do using sockets. I think Telnet uses port 23
> by default, but there are other ports too, so you may need to check
> that. Then you can use:
>   open socket to serverIP & ":23"
>
> Once connected, you can read from socket & write to socket. If you
> want some examples of sockets, you are welcome to have a look at my
> POP & SMTP libraries. They use different ports and different command
> sets, but the basic techniques should be the same. You can find them
> at <http://www.troz.net/Rev/libraries.php>.
>
> Cheers,
> Sarah
>
> P.S. I've never done this, but I assume this is how it works :-)




More information about the use-livecode mailing list