Jump to content

TCP question


tamir
 Share

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...