473,320 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

HELP - Send Files Using TCPClient

Using TCPClient, I have successfully made the first connection to the
server and I know how to PARSE the passive IP address and PORT number
for making the second connection. I am now in need of some help with
the correct commands to PUT a text file from the clients PC to the
server during the passive connection. Can anyone provide me with an
example of doing this ?
Jul 21 '05 #1
2 2859
I'm assuming that you are trying to write a FTP client. I don't know the
answer to your question.

But you could either just utilize a already-written FTP client control, or
look at its source code for your answers. There is one (maybe more) FTP
controls at gotdotnet.com. I'm not sure if the source code are available
for them. But there are also the open source projects, "FTP Client Library
for .Net" and "Indy (Internet Direct)", both at SourceForge.net. Source
code for both of those projects are available.

Hope this helps,

Richard Rosenheim

"Robert Johnson" <Ro*************@Anheuser-Busch.com> wrote in message
news:44**************************@posting.google.c om...
Using TCPClient, I have successfully made the first connection to the
server and I know how to PARSE the passive IP address and PORT number
for making the second connection. I am now in need of some help with
the correct commands to PUT a text file from the clients PC to the
server during the passive connection. Can anyone provide me with an
example of doing this ?

Jul 21 '05 #2
I'm assuming that you are trying to write a FTP client. I don't know the
answer to your question.

But you could either just utilize a already-written FTP client control, or
look at its source code for your answers. There is one (maybe more) FTP
controls at gotdotnet.com. I'm not sure if the source code are available
for them. But there are also the open source projects, "FTP Client Library
for .Net" and "Indy (Internet Direct)", both at SourceForge.net. Source
code for both of those projects are available.

Hope this helps,

Richard Rosenheim

"Robert Johnson" <Ro*************@Anheuser-Busch.com> wrote in message
news:44**************************@posting.google.c om...
Using TCPClient, I have successfully made the first connection to the
server and I know how to PARSE the passive IP address and PORT number
for making the second connection. I am now in need of some help with
the correct commands to PUT a text file from the clients PC to the
server during the passive connection. Can anyone provide me with an
example of doing this ?

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: JatP | last post by:
hi Everyone I am trying to create a server and client to send files from one side to the other. I can send files from one side to the other using bufferedinput/output streams but when trying to...
6
by: John J. Hughes II | last post by:
I have a service that needs to send e-mail alerts. I have been attempting to use the System.Net.Mail function from .NET but this seems to require the IIS be installed and running. Since some of...
1
by: hamil | last post by:
I am having trouble using the TcpListener and TcpClient classes. At the end of this post is server code that runs, and a class whose purpose is described below. I need to know when the client...
2
by: Robert Johnson | last post by:
Using TCPClient, I have successfully made the first connection to the server and I know how to PARSE the passive IP address and PORT number for making the second connection. I am now in need of...
4
by: Tlink | last post by:
I have have lifted some code that I am trying to make work in 2 seperate projects it appears to send okay but the it only recieves once then it stop recieving I am unsure as to why ? ********...
3
by: BuddyWork | last post by:
Hello, Could someone please explain why the Socket.Send is slow to send to the same process it sending from. Eg. Process1 calls Socket.Send which sends to the same IP address and port, the...
2
by: Bonzol | last post by:
vb.net 2003 Windows application We have a Client/Server system set up by communicating through a TCPClient object. The server loops continuously using a tcplistener device and each time a client...
14
by: eliss.carmine | last post by:
I'm using TCP/IP to send a Bitmap object over Sockets. This is my first time using C# at all so I don't know if this is the "right" way to do it. I've already found out several times the way I was...
5
by: Nobody | last post by:
Hi all, I try to write a small client that can handle some TCP communication message. I was wondering how I could use the TcpClient class to manage it. At the first time, I don't want to...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.