Register for your free account! | Forgot your password?

You last visited: Today at 03:56

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



AutoIT TCPRecv

Discussion on AutoIT TCPRecv within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2008
Posts: 44
Received Thanks: 0
AutoIT TCPRecv

I'm trying to listen to a certain connection and wait for a packet that contains "C8420000", is there a faster way I could do this? am I using StringInStr in a correct way? does adding a huge buffer size make room for the amount of bytes it can read per single read or does it make it slower? is opening one connection for receive and one for send a good idea or can I use the same socket for receiving and sending (I'll be sending a packet after doing some work on the received data so I need a send socket) any tips would be appreciated, thanks.

also would coding it in c or c++ be quicker than autoit?



#include <Misc.au3>

TCPStartup()

$receive = TCPConnect("127.0.0.1", 16000)
$send = TCPConnect("127.0.0.1", 16000)

While 1
$data = TCPRecv($receive, 1000000, 1)
if StringInStr($data, "C8420000", 2) Then
;send a certain packet to $send with $data
EndIf
WEnd 
xana4444 is offline  
Old 12/03/2019, 19:08   #2
 
elite*gold: 0
Join Date: Dec 2019
Posts: 8
Received Thanks: 1
I think the quickest way would be implementing it inside the game without the need for a proxy like phconnector, idk how to yet but I'm researching on it
aastrothunder is offline  
Reply


Similar Threads Similar Threads
TcpRecv fügt zufällige(?) Zahlen mit ein
11/24/2013 - AutoIt - 27 Replies
Hallo Leute, ich habe mich in den letzten Tagen mal dazu entschieden, etwas mit AutoIt zu machen. Genauer: TCP. Nur hab ich jetzt n kleines Problem, wenn ich den Quellcode von ner Website downloaden will. TcpRecv fügt mir immer wieder Zahlen ein, von denen ich nicht weiß woher die kommen. Die Funktion TcpRequest hab ich irgendwann mal im Internet gefunden und leicht abgeändert, sollte (eigentlich) funktionieren. Hier mal der Teil des Scripts: ;Aufruf, Cookies sind richtig $Source =...



All times are GMT +1. The time now is 03:57.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.