Click here to Skip to main content
15,902,276 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to serve usercontrol to clients thru webservice Pin
J4amieC23-Mar-06 2:16
J4amieC23-Mar-06 2:16 
Generalhelp me out Pin
anurajju23-Mar-06 3:11
anurajju23-Mar-06 3:11 
GeneralRe: help me out Pin
J4amieC23-Mar-06 4:01
J4amieC23-Mar-06 4:01 
GeneralRe: how to serve usercontrol to clients thru webservice Pin
Guffa23-Mar-06 5:49
Guffa23-Mar-06 5:49 
QuestionHow to send and receive data using HTTPS Pin
R.Shylaja22-Mar-06 18:58
R.Shylaja22-Mar-06 18:58 
AnswerRe: How to send and receive data using HTTPS Pin
fearless stallion22-Mar-06 19:58
fearless stallion22-Mar-06 19:58 
QuestionReading two mdf files for differences Pin
nosherwan22-Mar-06 18:40
nosherwan22-Mar-06 18:40 
Questionhow to open a IE from a cs file Pin
vamsimohan2122-Mar-06 16:51
vamsimohan2122-Mar-06 16:51 
AnswerRe: how to open a IE from a cs file Pin
Vasudevan Deepak Kumar22-Mar-06 18:14
Vasudevan Deepak Kumar22-Mar-06 18:14 
GeneralRe: how to open a IE from a cs file Pin
vamsimohan2122-Mar-06 20:53
vamsimohan2122-Mar-06 20:53 
QuestionI got a problem in using DataAccess Application Block to update database Pin
seeger12322-Mar-06 13:28
seeger12322-Mar-06 13:28 
AnswerRe: I got a problem in using DataAccess Application Block to update database Pin
DaBears23-Mar-06 11:26
DaBears23-Mar-06 11:26 
QuestionShow an .m2 format file in a form. Pin
AeQuitaZ22-Mar-06 13:09
AeQuitaZ22-Mar-06 13:09 
AnswerRe: Show an .m2 format file in a form. Pin
LongRange.Shooter23-Mar-06 4:44
LongRange.Shooter23-Mar-06 4:44 
QuestionHow to get rid of the DataGridView selection margin Pin
Marc Clifton22-Mar-06 10:46
mvaMarc Clifton22-Mar-06 10:46 
AnswerNever mind--RowHeadersVisible! Pin
Marc Clifton22-Mar-06 10:51
mvaMarc Clifton22-Mar-06 10:51 
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 

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.