Sign in to follow this  
Followers 0
nocow

Winsock Binary sending how ?

3 posts in this topic

Hello im working on a project where i have to send files through winsockets, i have made my own protocol with headers etc and it work perfectly when its only ASCII but it totaly miss up when i try send a binary file, ive try some with _HexToString and _StringToHex but no good result, what im asking for is not a script on how to do it, but simply how should i change binary or just send the binary through a socket...

Thanks

Share this post


Link to post
Share on other sites



So take the binary intro a string binary thing and then after send it then after that recover it as binary when tcprecv ? thats to complex for me can you help me out? and is it a problem that i do

For $i = 1 to $size

$data = $data & tcprecv($tcp,1)

Next

for get each byte becus its large and cant work with tcprecv($tcp,$AndLot)

regards

Share this post


Link to post
Share on other sites

... anybody ? :D

Ive read in AutoIt Help - Beta

Remarks

If binary data is received it can be converted to a hexadecimal string with the String function.

But i try that too it just seem like crashing and do nothing

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