Sign in to follow this  
Followers 0
Daikenkaiking

Sending Files via TCP

11 posts in this topic

My question: Is sending files VIA TCP possible, and if so, how would I go about doing so?

Thanks :lmao:

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Oh man, I totally forgot to search. =/

Sorry.

EDIT: Still can't find it, I searched "Send files TCP", "Send files over TCP", "Files and TCP", and a few others.

And still nothing. =/

Edited by Daikenkaiking

Share this post


Link to post
Share on other sites

I've looked though many codes, and none of them will work for what I am using...

My system works like this:

cmd|option1|option2....

and then stringsplit and select cases, and its not ran in the main while loop, so I have no figured out how to do this yet..

What do I need to do to send files? I tryed Turing the strings to hex and sending them, and then un-hexing them, and the same with binary. None were good... :lmao:

Help please, sorry about the noobie-ness of this :">

Share this post


Link to post
Share on other sites

I've looked though many codes, and none of them will work for what I am using...

My system works like this:

cmd|option1|option2....

and then stringsplit and select cases, and its not ran in the main while loop, so I have no figured out how to do this yet..

What do I need to do to send files? I tryed Turing the strings to hex and sending them, and then un-hexing them, and the same with binary. None were good... :lmao:

Help please, sorry about the noobie-ness of this :">

Need to make sure the ports are forwarded on the receiving end more than likely (if none of the current UDFs the forum has are working).

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

I have the ports forwarded, both TCP and UDP.

I read somewhere that the TCP functions don't allow Chr(0) and that I need to change those...? o.0

And also, How would I go about sending parts of a file at a time, i'm thinking that its not working, due to the fact of the data being too big for the transfer...

Edited by Daikenkaiking

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Oh my god xD

I was ready all the old ones, then. xD

Okay, thats for the help so far, if I figure it out, i'll post so you don't waste your time. :lmao:

EDIT: *Sigh* no luck :ph34r:

Edited by Daikenkaiking

Share this post


Link to post
Share on other sites

Well, did you manage to connect to the receiver at all? If you do, it's easy from there on.

Yes, I can send messages just fine, just not file. :lmao:

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

So you did something like..

$Data = FileRead("file.txt")
;connect and everything
TCPSend($Socket, $Data)
ExitoÝ÷ Ø    Ý¢{azaz»"u쨺Ƣu«­¢+Øí½¹¹Ð¹ÍÑÕ(ÀÌØíÑôQ
AIØ ¸¸¸¤ìÁɵÑÉÌ)¥±]É¥Ñ ÅÕ½Ðí¹Ý¥±¹ÑáÐÅÕ½Ðì°ÀÌØíѤ

Edited by Manadar

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