Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C#] HaTransfer: easily transferring files between computers

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming -> Binaries
View previous topic :: View next topic  
Author Message
Habufe
Expert Cheater
Reputation: 0

Joined: 03 Sep 2007
Posts: 149
Location: http://www.SaviourFagFails.com/

PostPosted: Wed Dec 03, 2008 11:08 am    Post subject: [C#] HaTransfer: easily transferring files between computers Reply with quote

made this one mostly for personal use (i have two computers and i wanted a simple way to transfer files between them) and decided to share it since i already made it anyway.

how2use:
1.run the attached software on both computers.
2.on the computer that is receiving the files select Server Options --> open server
3. on the computer that is sending the files enter the 1st computer's ip in the "IP" box and enter 1337 in the "Port" box (the default port, can be modified in the source). then select Client Options --> connect, and Client Options --> send file. you will be prompted to select a file (dont try to transfer 100mb files, kk? the default buffer length is 5mb, since over this size its faster to just use a usb stick)
4.the server computer will be prompted to save the transferred file.

Attached: source code and compiled binary.

also, if you want to learn about using sockets in .NET i would recommend going to this site. it helped me making this software in many ways.



The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.



Last edited by Habufe on Thu Dec 04, 2008 8:56 am; edited 1 time in total
Back to top
View user's profile Send private message
Jorg hi
I post too much
Reputation: 7

Joined: 24 Dec 2007
Posts: 2276
Location: Minnesota

PostPosted: Wed Dec 03, 2008 4:19 pm    Post subject: Reply with quote

Please can you change the max buffer size to at least 20 mb? lol.
_________________
CEF will always stay alive.
Back to top
View user's profile Send private message
Habufe
Expert Cheater
Reputation: 0

Joined: 03 Sep 2007
Posts: 149
Location: http://www.SaviourFagFails.com/

PostPosted: Thu Dec 04, 2008 8:55 am    Post subject: Reply with quote

Jorg hi wrote:
Please can you change the max buffer size to at least 20 mb? lol.
you can just download the source code and change the public byte[] m_byBuff size.
Back to top
View user's profile Send private message
Odecey
Master Cheater
Reputation: 1

Joined: 19 Apr 2007
Posts: 259
Location: Scandinavia

PostPosted: Mon Dec 08, 2008 11:22 am    Post subject: Reply with quote

Unfortunately I'm unable to load the project file. When i try to, an error stating that it cannot find the import "C:\Microsoft.CSharp.targets" pops up. Do you have any idea why this is?
Edit: i didn't found out why this occured, but i did find a solution to the problem: Open the csproj file in note pad, and find this line of code
Code:
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

replace it with this:
Code:
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
=). Thanks for sharing the source btw.
_________________
Never confuse activity with productivity. You can be busy without a purpose, but what's the point?- Rick Warren
Back to top
View user's profile Send private message MSN Messenger
hanamana
How do I cheat?
Reputation: 0

Joined: 02 Feb 2009
Posts: 6

PostPosted: Sun Mar 08, 2009 7:57 pm    Post subject: about buffer Reply with quote

you shouldn't set a large buffer size to recieve a file "at once". this is really impractical. consider using a 1KB buffer and appending each shipment to a file. send a few null bytes at the end so you know when you're finished.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming -> Binaries All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites