Jump to content
Sign in to follow this  
tamir

TCP question

Recommended Posts

tamir

how can i stop the script until i get the message "ok" from the server i connected to?

i tried

While 1
   $get = DllCall("au3xtra.dll","int","TCPRecv", "int", $socket, "str", "", "int", 512)
   If $get[2] = "ok" Then ExitLoop
WEnd

but it's not working

Share this post


Link to post
Share on other sites
Blue_Drache

how can i stop the script until i get the message "ok" from the server i connected to?

i tried

While 1
   $get = DllCall("au3xtra.dll","int","TCPRecv", "int", $socket, "str", "", "int", 512)
   If $get[2] = "ok" Then ExitLoop
WEnd

but it's not working

<{POST_SNAPBACK}>

Would putting a sleep inbetween the $get and the If statements help?

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites
tamir

umm nope...

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  

×