Click here to Skip to main content
15,879,535 members
Home / Discussions / C#
   

C#

 
AnswerRe: Writing a Type to Binary File Pin
Luc Pattyn31-Jul-07 1:08
sitebuilderLuc Pattyn31-Jul-07 1:08 
GeneralRe: Writing a Type to Binary File Pin
JamesBarnes31-Jul-07 1:11
JamesBarnes31-Jul-07 1:11 
Questionhow to make sure Socket has connected? Pin
Gavin Roberts31-Jul-07 0:56
Gavin Roberts31-Jul-07 0:56 
AnswerRe: how to make sure Socket has connected? Pin
led mike31-Jul-07 4:21
led mike31-Jul-07 4:21 
GeneralRe: how to make sure Socket has connected? Pin
Gavin Roberts31-Jul-07 5:08
Gavin Roberts31-Jul-07 5:08 
GeneralRe: how to make sure Socket has connected? Pin
led mike31-Jul-07 5:41
led mike31-Jul-07 5:41 
GeneralRe: how to make sure Socket has connected? Pin
Gavin Roberts31-Jul-07 6:08
Gavin Roberts31-Jul-07 6:08 
GeneralRe: how to make sure Socket has connected? Pin
pbraun31-Jul-07 8:45
pbraun31-Jul-07 8:45 
Gavin Roberts wrote:
Socket.Receive is slow for a invalid Connection, and i'd prefere to speed this up.


Socket.Receive is blocking which means that it will only return after it has received data or the connection has been closed.

To check if the connection is valid you will have to look at the socket options available to see if any of those help. Also you should be checking the return status of Socket.Connect to see if it connected properly and if you are not catching any exceptions around the Socket.Connect, then you will be missing information that may lead to the answer you are seeking.

An inference from the above is that the socket should be valid by the time the receive method is called.

Phil
GeneralRe: how to make sure Socket has connected? Pin
led mike31-Jul-07 9:06
led mike31-Jul-07 9:06 
QuestionUnrecognized attribute 'xmlns' Pin
kalyan_241631-Jul-07 0:46
kalyan_241631-Jul-07 0:46 
AnswerRe: Unrecognized attribute 'xmlns' Pin
Vasudevan Deepak Kumar31-Jul-07 0:58
Vasudevan Deepak Kumar31-Jul-07 0:58 
AnswerRe: Unrecognized attribute 'xmlns' Pin
prasanna muthuramalingam31-Jul-07 1:42
prasanna muthuramalingam31-Jul-07 1:42 
GeneralRe: Unrecognized attribute 'xmlns' Pin
kalyan_241631-Jul-07 1:52
kalyan_241631-Jul-07 1:52 
QuestionHow to get installed products on a system Pin
Yosh_31-Jul-07 0:41
professionalYosh_31-Jul-07 0:41 
AnswerRe: How to get installed products on a system Pin
Luc Pattyn31-Jul-07 1:00
sitebuilderLuc Pattyn31-Jul-07 1:00 
GeneralRe: How to get installed products on a system Pin
Yosh_1-Aug-07 3:41
professionalYosh_1-Aug-07 3:41 
GeneralRe: How to get installed products on a system Pin
Luc Pattyn1-Aug-07 3:53
sitebuilderLuc Pattyn1-Aug-07 3:53 
QuestionProblem in mdi form Pin
deepaksringr31-Jul-07 0:21
deepaksringr31-Jul-07 0:21 
AnswerRe: Problem in mdi form Pin
Martin#31-Jul-07 0:44
Martin#31-Jul-07 0:44 
GeneralRe: Problem in mdi form Pin
deepaksringr31-Jul-07 0:58
deepaksringr31-Jul-07 0:58 
AnswerRe: Problem in mdi form Pin
Yosh_31-Jul-07 0:55
professionalYosh_31-Jul-07 0:55 
QuestionUpdate the dataset into database table Pin
chandragupta.k30-Jul-07 23:37
chandragupta.k30-Jul-07 23:37 
QuestionWPF Treeview with Checkboxes Pin
Johan Lombaard30-Jul-07 23:37
Johan Lombaard30-Jul-07 23:37 
QuestionStart a Windows Forms application from a Windows Service Pin
usermans30-Jul-07 23:30
usermans30-Jul-07 23:30 
AnswerRe: Start a Windows Forms application from a Windows Service Pin
Luc Pattyn30-Jul-07 23:45
sitebuilderLuc Pattyn30-Jul-07 23:45 

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.