Solved

Winsock Send/Rcv files

Posted on 2004-10-15
4
217 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 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