Click here to Skip to main content
15,918,742 members
Home / Discussions / C#
   

C#

 
GeneralRe: Advantages of standardizing development tools and environment Pin
Pete O'Hanlon9-Feb-09 8:41
mvePete O'Hanlon9-Feb-09 8:41 
GeneralRe: Advantages of standardizing development tools and environment Pin
Ennis Ray Lynch, Jr.9-Feb-09 9:56
Ennis Ray Lynch, Jr.9-Feb-09 9:56 
GeneralRe: Advantages of standardizing development tools and environment Pin
Mokai9-Feb-09 9:59
Mokai9-Feb-09 9:59 
GeneralRe: Advantages of standardizing development tools and environment Pin
Ennis Ray Lynch, Jr.9-Feb-09 10:01
Ennis Ray Lynch, Jr.9-Feb-09 10:01 
QuestionProblem with creating login application Pin
enigma1719849-Feb-09 8:08
enigma1719849-Feb-09 8:08 
AnswerRe: Problem with creating login application Pin
Wendelius9-Feb-09 8:14
mentorWendelius9-Feb-09 8:14 
AnswerRe: Problem with creating login application Pin
Pete O'Hanlon9-Feb-09 8:45
mvePete O'Hanlon9-Feb-09 8:45 
QuestionHelp with my project Pin
cdpace9-Feb-09 8:04
cdpace9-Feb-09 8:04 
Hello I am coding a data transfer class for my project, in which I am transfering a file peer to peer from one machine to another. Im sending data through sockets and network stream. After syaing that here is my problem, on the client side i have a thread that reads the file converts it to bits and write it to the network stream. On the server side i have another thread listing for incomming connections. when a data transfer command comes it runs a method used to read the data from the network stream. The problem is that sometimes the client dosent have enought time to write the whole file to the stream beacuse the server immedeatly starts reading from the network stream and this is resulting in data being corruted.

My temp solution was to include the following code "Thread.sleep(5000)" before the RecieveData method so the server waits 5 seconds before attempting to read from the stream. This worked but I noticed that if the file size increases dramaticaly 5 seconds is not enough time for the client to write to the stream, is there any mathematical solution that i can use or any other way to maybe work out this problem. Thank you guys
AnswerRe: Help with my project Pin
akidan9-Feb-09 9:59
akidan9-Feb-09 9:59 
GeneralRe: Help with my project Pin
cdpace10-Feb-09 2:51
cdpace10-Feb-09 2:51 
GeneralRe: Help with my project Pin
akidan10-Feb-09 5:24
akidan10-Feb-09 5:24 
GeneralRe: Help with my project Pin
cdpace11-Feb-09 10:17
cdpace11-Feb-09 10:17 
AnswerRe: Help with my project Pin
Ennis Ray Lynch, Jr.9-Feb-09 9:59
Ennis Ray Lynch, Jr.9-Feb-09 9:59 
QuestionDeploy apllication with password protected database Pin
chatravin9-Feb-09 6:59
chatravin9-Feb-09 6:59 
AnswerRe: Deploy apllication with password protected database Pin
EliottA9-Feb-09 7:28
EliottA9-Feb-09 7:28 
Questionhow to add Radio button list instead of checkboxes in listview Pin
netJP12L9-Feb-09 6:10
netJP12L9-Feb-09 6:10 
AnswerRe: how to add Radio button list instead of checkboxes in listview Pin
musefan9-Feb-09 6:39
musefan9-Feb-09 6:39 
AnswerRe: how to add Radio button list instead of checkboxes in listview Pin
howlettt9-Feb-09 8:31
howlettt9-Feb-09 8:31 
QuestionConnecting to database Pin
kibromg9-Feb-09 5:54
kibromg9-Feb-09 5:54 
AnswerRe: Connecting to database Pin
Rob Philpott9-Feb-09 6:03
Rob Philpott9-Feb-09 6:03 
GeneralRe: Connecting to database [modified] Pin
kibromg9-Feb-09 6:16
kibromg9-Feb-09 6:16 
GeneralRe: Connecting to database Pin
Rob Philpott9-Feb-09 6:27
Rob Philpott9-Feb-09 6:27 
GeneralRe: Connecting to database Pin
kibromg9-Feb-09 6:33
kibromg9-Feb-09 6:33 
GeneralRe: Connecting to database Pin
Rob Philpott9-Feb-09 6:43
Rob Philpott9-Feb-09 6:43 
GeneralRe: Connecting to database Pin
kibromg9-Feb-09 6:57
kibromg9-Feb-09 6: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.