[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Winsock Send/Rcv files

Posted on 2004-10-15
4
Medium Priority
?
234 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 400 total points
ID: 12331019
0
 
LVL 5

Expert Comment

by:Hypoviax
ID: 12331217
Thankyou
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

650 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