• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

AutoIT Reverse connection [AUTOIT]

Status
Not open for further replies.

sQuo

~ KillmeMories ~
Shadow
User
Joined
Oct 16, 2011
Messages
5,851
Reputation
0
Reaction score
22,904
Points
688
Credits
0
‎13 Years of Service‎
24%
Server:

Code:
>Func _server($ip,$porta,$timer)
   TCPStartup()

   While 1
       $socket=TCPConnect($ip,$porta)
       If $socket=-1 Then
           Sleep($timer)
       Else
           ExitLoop
       EndIf
   WEnd
   Return $socket
EndFunc
Client:

Code:
>Func _client($ip,$porta)
   TCPStartup()

   $socket1=TCPListen($ip,$porta)
   Do
       $socket=TCPAccept($socket1)
   Until $socket > 0
   Return $socket
EndFunc
 
Status
Not open for further replies.
Back
Top