n9mfk9 Posted June 29, 2007 Share Posted June 29, 2007 Hi all i can not get tcprecv to work ;CLIENT!!!!!!!! Start SERVER First... $name = "mail.insightbb.com" $port="110" ; Start The TCP Services ;============================================== TCPStartUp() $g_IP = TCPNameToIP($name) ; Connect to a Listening "SOCKET" ;============================================== $socket = TCPConnect( $g_IP, $port) ;If $socket = -1 Then Exit TCPSend($socket, 'user test') Sleep(100) $recv = TCPRecv( $Socket, 2048 ) MsgBox(0,"",$recv) thanks for an help Link to comment Share on other sites More sharing options...
McGod Posted June 29, 2007 Share Posted June 29, 2007 ;CLIENT!!!!!!!! Start SERVER First... $name = "mail.insightbb.com" $port="110" ; Start The TCP Services ;============================================== TCPStartUp() $g_IP = TCPNameToIP($name) ; Connect to a Listening "SOCKET" ;============================================== $socket = TCPConnect( $g_IP, $port) ;If $socket = -1 Then Exit TCPSend($socket, 'user test') While 1 Sleep(100) $recv = TCPRecv( $socket, 2048 ) If $recv = "" Then ContinueLoop MsgBox(0,"",$recv) WEnd Try that [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now