Sign in to follow this  
Followers 0
beebee

UDPSend() with hex/bin data?

4 posts in this topic

Hi,

I am trying to write a game querying utility. Is it possible to get UDPSend() to send in hex/bin rather than in String format? Or are there any plans to implement this feature in the near future?

Best regards,

beebee.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

$String = "Your Text Here"

UDPSend($SocketArray, _StringToHex($String))

On other side you must add:

$String = UDPRecv($Socketarray)

$String = _HexToString($String)

Edited by AutoIt Smith

Share this post


Link to post
Share on other sites

$String = "Your Text Here"

UDPSend($SocketArray, _StringToHex($String))

On other side you must add:

$String = UDPRecv($Socketarray)

$String = _HexToString($String)

My query request is actually meant for a War3 lan server. I had used a packet dump to get UDP data "\xf7\x2f\x10\x00\x50\x58\x33\x57\x14\x00\x00\x00\x00\x00\x00\x00" which will trigger the War3 lan server to return information about an active game.

However, I'm unable to formulate the Hex/Bin string to send the data over using AutoIT due to its inability to send UDP packets in hex/bin form. I believe this feature can greatly enhance the usefulness of AutoIT in the creation of Internet tools in the future.

Share this post


Link to post
Share on other sites

Can anyone shed some light on this?

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  
Followers 0