Click here to Skip to main content
15,894,460 members
Home / Discussions / C#
   

C#

 
AnswerRe: if statements Pin
Guffa24-Aug-06 12:17
Guffa24-Aug-06 12:17 
AnswerRe: if statements Pin
KevinMac24-Aug-06 13:47
KevinMac24-Aug-06 13:47 
GeneralRe: if statements Pin
Tyrus18224-Aug-06 18:16
Tyrus18224-Aug-06 18:16 
AnswerRe: if statements Pin
Coding C#24-Aug-06 20:38
Coding C#24-Aug-06 20:38 
QuestionAsyncSocket question Pin
Tom Wright24-Aug-06 8:41
Tom Wright24-Aug-06 8:41 
AnswerRe: AsyncSocket question Pin
vineas24-Aug-06 9:00
vineas24-Aug-06 9:00 
GeneralRe: AsyncSocket question Pin
Tom Wright24-Aug-06 9:07
Tom Wright24-Aug-06 9:07 
AnswerRe: AsyncSocket question Pin
Nader Elshehabi24-Aug-06 11:14
Nader Elshehabi24-Aug-06 11:14 
Hello


Tom Wright wrote:
I need to do a BeginSend to make my client socket app truly async?


Sending and receiving are two different operations. If you send using Send() method and recieve using BeginReceive() method, then your sending will be blocking, or sync opertation while recieving is not!!

For me, I prefer using multithreading. This is what really happens in the background. The Begin methods actually make a thread for you to do the job. Well, I like to have a control over my threads, even if I have ot write few more lines!!

So, my advice, Make a thread for each socket to handle sending/receiving data. A better more advanced approach -needs more care though- is to make two threads for each socket. One to send and the other to receive.

RegardsRose | [Rose]
GeneralRe: AsyncSocket question Pin
Tom Wright25-Aug-06 6:45
Tom Wright25-Aug-06 6:45 
GeneralRe: AsyncSocket question Pin
Nader Elshehabi25-Aug-06 7:47
Nader Elshehabi25-Aug-06 7:47 
GeneralRe: AsyncSocket question Pin
Tom Wright25-Aug-06 8:15
Tom Wright25-Aug-06 8:15 
AnswerRe: AsyncSocket question Pin
Nader Elshehabi25-Aug-06 9:20
Nader Elshehabi25-Aug-06 9:20 
Questionhow to "catch a delegate" Pin
ezazazel24-Aug-06 8:07
ezazazel24-Aug-06 8:07 
AnswerRe: how to "catch a delegate" Pin
Ennis Ray Lynch, Jr.24-Aug-06 9:11
Ennis Ray Lynch, Jr.24-Aug-06 9:11 
GeneralRe: how to "catch a delegate" [modified] Pin
ezazazel24-Aug-06 9:59
ezazazel24-Aug-06 9:59 
GeneralRe: how to "catch a delegate" Pin
Ennis Ray Lynch, Jr.24-Aug-06 10:03
Ennis Ray Lynch, Jr.24-Aug-06 10:03 
GeneralRe: how to "catch a delegate" Pin
ezazazel24-Aug-06 10:11
ezazazel24-Aug-06 10:11 
GeneralRe: how to "catch a delegate" Pin
Ennis Ray Lynch, Jr.24-Aug-06 10:26
Ennis Ray Lynch, Jr.24-Aug-06 10:26 
GeneralRe: how to "catch a delegate" Pin
Robert Rohde24-Aug-06 23:27
Robert Rohde24-Aug-06 23:27 
GeneralRe: how to "catch a delegate" Pin
ezazazel25-Aug-06 3:33
ezazazel25-Aug-06 3:33 
QuestionGenerics contraints "or?" Pin
Ista24-Aug-06 7:36
Ista24-Aug-06 7:36 
AnswerRe: Generics contraints "or?" Pin
Richard Deeming24-Aug-06 8:41
mveRichard Deeming24-Aug-06 8:41 
AnswerCreate a higher interface Pin
Ennis Ray Lynch, Jr.24-Aug-06 9:13
Ennis Ray Lynch, Jr.24-Aug-06 9:13 
AnswerRe: Generics contraints "or?" Pin
Judah Gabriel Himango24-Aug-06 10:14
sponsorJudah Gabriel Himango24-Aug-06 10:14 
Questionhtml file parsing help Pin
pokabot24-Aug-06 6:39
pokabot24-Aug-06 6:39 

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.