Click here to Skip to main content
15,888,802 members
Home / Discussions / C#
   

C#

 
QuestionDLL Not Found Problem! Pin
LongRange.Shooter22-Mar-06 10:30
LongRange.Shooter22-Mar-06 10:30 
AnswerRe: DLL Not Found Problem! Pin
leppie22-Mar-06 19:53
leppie22-Mar-06 19:53 
GeneralRe: DLL Not Found Problem! Pin
LongRange.Shooter23-Mar-06 4:10
LongRange.Shooter23-Mar-06 4:10 
QuestionLanguage Problem Pin
snouto22-Mar-06 10:21
snouto22-Mar-06 10:21 
AnswerRe: Language Problem Pin
leppie22-Mar-06 19:57
leppie22-Mar-06 19:57 
Questionclient application Pin
haseeb_saeed22-Mar-06 9:35
haseeb_saeed22-Mar-06 9:35 
AnswerRe: client application Pin
Ed.Poore22-Mar-06 10:25
Ed.Poore22-Mar-06 10:25 
AnswerRe: client application Pin
snouto22-Mar-06 10:29
snouto22-Mar-06 10:29 
hello my friend .
All you have to do is to connect to the ftp server using its ip address and the common port of any ftp server which is 21 by the following piece of code

<br />
byte[] readbytes = new byte[1024];<br />
IpEndPoint ftpEndpoint = new IpEndPoint(IpAddress.Parse("Ftp server ip address to parse"),(Int32)21/*common ftp port */);<br />
TcpClient currentftpclient = new TcpClient();<br />
currentftpclient.connect(ftpendpoint);<br />
currentftpclient.BeginRead(readbytes , 0 , readbytes.Length,null);<br />

From that code you are able to connect to the given ftp server and begin asynchronous reading and writing to that ftp server then what you all have to do is :

to pass to the ftp server normal ftp client commands that deals with file structures and enumerations.
Like Dir
get
put
and quit
and each time the ftp server will respond to your client with specific response you have to parse that response to know the actual response of the ftp server for example

in dir command
to list all current files in the current folders
the ftp server will send you all files in binary with all of their attribbutes.Then you will have to parse these binary data to its actual ASCII values and you are done.

You can google for Ftp Client commands .
And you will get the answer there


Thank you i hope it may help You.

Human knowledge belongs to the world.
QuestionTransprency image on Pocket PC Pin
bouli22-Mar-06 9:34
bouli22-Mar-06 9:34 
QuestionUsing DataRelation for DataBindings backwards? Pin
bobbyn31422-Mar-06 9:31
bobbyn31422-Mar-06 9:31 
QuestionDesigner Question Pin
Marc Clifton22-Mar-06 9:28
mvaMarc Clifton22-Mar-06 9:28 
QuestionHow Do We Create a Checker Game? Pin
jeff1922-Mar-06 9:14
jeff1922-Mar-06 9:14 
AnswerRe: How Do We Create a Checker Game? Pin
DigitalKing22-Mar-06 18:40
DigitalKing22-Mar-06 18:40 
GeneralRe: How Do We Create a Checker Game? Pin
Member 156244864-May-22 5:17
Member 156244864-May-22 5:17 
QuestionHiding a Tab Control Pin
Franz Klein22-Mar-06 9:11
Franz Klein22-Mar-06 9:11 
AnswerRe: Hiding a Tab Control Pin
jonas_berg22-Mar-06 10:05
jonas_berg22-Mar-06 10:05 
AnswerRe: Hiding a Tab Control Pin
Ed.Poore22-Mar-06 10:06
Ed.Poore22-Mar-06 10:06 
QuestionProgressive vs. Baseline JPEG Pin
SylvesterW22-Mar-06 9:10
SylvesterW22-Mar-06 9:10 
AnswerRe: Progressive vs. Baseline JPEG Pin
DaBears22-Mar-06 11:39
DaBears22-Mar-06 11:39 
GeneralRe: Progressive vs. Baseline JPEG Pin
SylvesterW22-Mar-06 19:45
SylvesterW22-Mar-06 19:45 
GeneralRe: Progressive vs. Baseline JPEG Pin
DaBears23-Mar-06 5:36
DaBears23-Mar-06 5:36 
GeneralRe: Progressive vs. Baseline JPEG Pin
SylvesterW23-Mar-06 11:17
SylvesterW23-Mar-06 11:17 
GeneralRe: Progressive vs. Baseline JPEG Pin
DaBears23-Mar-06 11:30
DaBears23-Mar-06 11:30 
GeneralRe: Progressive vs. Baseline JPEG Pin
SylvesterW23-Mar-06 19:13
SylvesterW23-Mar-06 19:13 
QuestionC# Generating Outlook contacts Pin
Paul Sullivan22-Mar-06 8:57
Paul Sullivan22-Mar-06 8:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.