Contact telnet/socket/whatever before i jump of the window
I can open command line (in win32) and write this:
telnet localhost 9051
and it opens a connection with an application that listens that port.
In vbs i would do this:
Quote:
'Make socket name
set fruit = CreateObject("banana.Socket")
'Connect to control port
fruit.Connect "localhost", 9051
And to send data i would do this:
Quote:
fruit.Write "data for teh lulz" & vbcrlf
And to read data from the app answers:
Quote:
'read the buffer
chktxt = fruit.ReadLine
How can i produce the same effect in C++?
Please make an example for each type of interaction i posted here please. It would save me much time to find out the right sintaxe.
Thanks.