Click here to Skip to main content
15,907,874 members
Home / Discussions / C#
   

C#

 
AnswerRe: Problem transferring file with FTP using Socket Pin
Mark Salsbery14-Jan-09 13:35
Mark Salsbery14-Jan-09 13:35 
GeneralRe: Problem transferring file with FTP using Socket Pin
Member 321680815-Jan-09 2:41
Member 321680815-Jan-09 2:41 
This is how I get my data socket:

dataSocket = new Socket(endPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);

I send data on the socket after sending a STOR command on the command socket; at least, that is what I call the socket where text is sent and received. When the data transfer is "complete," I get an appropriate text message on the command socket saying that the transfer completed, and giving info on how long the transfer took.

This is my first time using sockets, so I am not sure what else you are asking. I used the Thread.Sleep() in desperation when I realized that some data was disappearing somewhere. The Thread.Sleep(20) is just so the thread will yield and let other things happen in the UI - the exact timing is unimportant.

I am not sure that adding a header would be too useful - I would be able to detect that data had disappeared, but I would have no way to correct the problem.
AnswerRe: Problem transferring file with FTP using Socket Pin
Bharat Jain29-Jan-09 19:47
Bharat Jain29-Jan-09 19:47 
QuestionSend UDP string via proxy [modified] Pin
s.sala14-Jan-09 4:05
s.sala14-Jan-09 4:05 
AnswerRe: Send UDP string via proxy Pin
Bharat Jain14-Jan-09 4:27
Bharat Jain14-Jan-09 4:27 
GeneralRe: Send UDP string via proxy Pin
s.sala14-Jan-09 4:59
s.sala14-Jan-09 4:59 
GeneralRe: Send UDP string via proxy Pin
Bharat Jain29-Jan-09 19:27
Bharat Jain29-Jan-09 19:27 
QuestionGetting column value from binding Pin
kanchoette14-Jan-09 4:00
kanchoette14-Jan-09 4:00 
AnswerRe: Getting column value from binding Pin
moon_stick14-Jan-09 4:15
moon_stick14-Jan-09 4:15 
GeneralRe: Getting column value from binding Pin
kanchoette14-Jan-09 21:30
kanchoette14-Jan-09 21:30 
GeneralRe: Getting column value from binding Pin
moon_stick14-Jan-09 21:57
moon_stick14-Jan-09 21:57 
GeneralRe: Getting column value from binding Pin
kanchoette14-Jan-09 22:09
kanchoette14-Jan-09 22:09 
GeneralRe: Getting column value from binding Pin
moon_stick14-Jan-09 22:45
moon_stick14-Jan-09 22:45 
AnswerRe: Getting column value from binding Pin
moon_stick14-Jan-09 22:51
moon_stick14-Jan-09 22:51 
GeneralRe: Getting column value from binding Pin
kanchoette14-Jan-09 23:39
kanchoette14-Jan-09 23:39 
GeneralRe: Getting column value from binding Pin
moon_stick14-Jan-09 23:49
moon_stick14-Jan-09 23:49 
GeneralRe: Getting column value from binding Pin
kanchoette14-Jan-09 23:55
kanchoette14-Jan-09 23:55 
QuestionHow to contact with file in C#? Pin
thuonghasm14-Jan-09 3:22
thuonghasm14-Jan-09 3:22 
AnswerRe: How to contact with file in C#? Pin
Le centriste14-Jan-09 3:27
Le centriste14-Jan-09 3:27 
AnswerRe: How to contact with file in C#? Pin
musefan14-Jan-09 3:33
musefan14-Jan-09 3:33 
AnswerRe: How to contact with file in C#? Pin
vaghelabhavesh14-Jan-09 7:17
vaghelabhavesh14-Jan-09 7:17 
Questionquestion Pin
mabrouki2314-Jan-09 3:16
mabrouki2314-Jan-09 3:16 
GeneralRe: question Pin
Programm3r14-Jan-09 3:23
Programm3r14-Jan-09 3:23 
GeneralRe: question Pin
Le centriste14-Jan-09 3:28
Le centriste14-Jan-09 3:28 
GeneralRe: question Pin
musefan14-Jan-09 3:29
musefan14-Jan-09 3:29 

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.