Solved

Winsock Send/Rcv files

Posted on 2004-10-15
4
219 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi Spellcheck in Webbrowser 1 45
Delphi XE10 Round Image 2 186
Delphi IDE crash without error message ... 7 114
Delphi Seattle StructureView color 1 21
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

763 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