Click here to Skip to main content
15,916,379 members
Home / Discussions / C#
   

C#

 
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 
For firing the event when data comes in, you'll have to do that after you call EndReceive, or you won't know how much data you received (and possibly your buffer will not have the data - can't remember off-hand).

I've always used regular sends for sending data, and BeginReceive/EndReceive on the receiving end. I don't know if this really makes async, but I never quite understood the reasons for the overhead involved with BeginSend/EndSend - regular Send has always worked just fine for me.

-----
In the land of the blind, the one eyed man is king.

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 
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 
AnswerRe: html file parsing help Pin
Dustin Metzgar24-Aug-06 10:14
Dustin Metzgar24-Aug-06 10:14 
AnswerRe: html file parsing help Pin
coolestCoder24-Aug-06 20:52
coolestCoder24-Aug-06 20:52 
QuestionListView.Items.Add(....) problem Pin
thunderbirdje24-Aug-06 6:20
thunderbirdje24-Aug-06 6:20 
AnswerRe: ListView.Items.Add(....) problem Pin
Richard Deeming24-Aug-06 8:50
mveRichard Deeming24-Aug-06 8:50 

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.