473,503 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2871
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
3284
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
3247
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
4510
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
323
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
5570
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
4261
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
4184
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
11861
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
4788
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
7280
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7330
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.