• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

Winsock Send/Rcv files

Hello, I need a simple way to send and recieve files using pure winsock.
If it's not possible then I would like to know if you can do it with TClientSocket, but Winsock would be great. I dont want to add anything like a FTP server because I dont want the extra KB's.
Would this require making a client of some sort?
thank you.
0
delphcon5
Asked:
delphcon5
  • 2
1 Solution
 
Wim ten BrinkCommented:
All I know is that you'd need a client application and a server application, no matter if you're using WinSock or the Indy components or whatever else you like to use. If you want to keep your application as thin as possible, then use just the WinSock unit in your code. This will only rely upon the Windows unit so including this unit barely increases your final code size.

This Q might help a bit more: http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_21039312.html
The accepted answer won't do much for you but it has some sample code about using raw sockets.

Also interesting is this link: http://www.smartdata.com.au/delphi_isp/
Although it's a bit outdated now. It talks about the three Delphi versions. There are eight versions now!... :-)

Other interesting links can be googled: http://www.google.nl/search?q=WinSock+delphi+example
0
 
delphcon5Author Commented:
Thanks, I have alot of code using winsock such as HTTP servers, and also SMTP units.
So basically i need to break down this code and construct a custom client/server application?
0
 
HypoviaxCommented:
0
 
HypoviaxCommented:
Thankyou
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now