Sign in to follow this  
Followers 0
cppman

TCP

6 posts in this topic

Im not very good when it comes to the TCP functions.... i was wondering if someone could write me a well commented script that will show me how to use TCPConnect(), TCPStartup(), TCPSend(), and TCPRecv().

Im really having the trouble with TCPSend, and TCPRecv.

I would really appreciate it if u could help... Thanks! If u could, could u show me an example with all of them working together... thanks alot! I know they have them in the Help File, but they don't really help me much.

Share this post


Link to post
Share on other sites



Please check my signature for the TCP, DON'T POST, GO HERE link. It has a link to several things TCP. Please check the section TCP Made Easy that has all the readouts of the functions.

AutoIt Smith

Share this post


Link to post
Share on other sites

No problem. I made that post for this very reason.

Share this post


Link to post
Share on other sites

More TCPSend questions:

I'm trying to connect to a Telnet server to send some commands. I need to first setup up the terminal by sending IAC's. (See http://www.scit.wlv.ac.uk/~jphb/comms/telnet.html if confused as to what I'm talking about)

How can I send data AS a telnet COMMAND. I really need to send the decimal code I believe. I'm using a packet sniffer to note my failures from within autoit, and my success's from just a command line.

Typically, the Telnet server would deliver:

Telnet
     Command: Do Terminal Type
     Command: Do Terminal Speed
     Command: Do X Display Location
     Command: Do New Environment Option

I need to reply to the affect of:

Telnet
     Command: Won't Terminal Type
     Command: Won't Terminal Speed
     Command: Won't X Display Location
     Command: Won't New Environment Option

But, when using TCPSend my telnet rec'vd data is:

Telnet
     Data: Won't Terminal Type
etc...

I'm guessing there's some syntax I'm missing here, in how I deliver the commands to have the Telnet server Interpret As Command.

Thanks,

Ben


Ben

Share this post


Link to post
Share on other sites

You need to send for a command

255,<type of operation>,<option>

Read the data carefully.

IF you need more help PM me and I will do specific questions.

AutoIt Smith

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0