Jump to content
Sign in to follow this  
Daikenkaiking

Sending Files via TCP

Recommended Posts

Daikenkaiking

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
Daikenkaiking

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
Daikenkaiking

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
SmOke_N

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).

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.

Share this post


Link to post
Share on other sites
Daikenkaiking

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
Daikenkaiking

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
jvanegmond

Having a mistress sucks so badly. I recently broke up with my girl and my mistress because I felt bad. I've felt terrible since.

Share this post


Link to post
Share on other sites
Daikenkaiking

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
jvanegmond

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.