Solved

Winsock Send/Rcv files

Posted on 2004-10-15
4
212 Views
Last Modified: 2010-04-05
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
Comment
Question by:delphcon5
  • 2
4 Comments
 
LVL 17

Expert Comment

by:Wim ten Brink
ID: 12318210
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
 

Author Comment

by:delphcon5
ID: 12326136
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
 
LVL 5

Accepted Solution

by:
Hypoviax earned 100 total points
ID: 12331019
0
 
LVL 5

Expert Comment

by:Hypoviax
ID: 12331217
Thankyou
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now