Click here to Skip to main content
15,920,383 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# winservice, exe to source Pin
mark_me1-May-09 11:35
mark_me1-May-09 11:35 
QuestionRe: C# winservice, exe to source Pin
mark_me1-May-09 9:04
mark_me1-May-09 9:04 
QuestionConformation Page in ASP.NET C# Pin
Shane Cavin1-May-09 6:19
Shane Cavin1-May-09 6:19 
AnswerRe: Conformation Page in ASP.NET C# Pin
Tom Lawrance1-May-09 6:29
professionalTom Lawrance1-May-09 6:29 
QuestionConnecting to a camera Pin
'Drew1-May-09 6:12
'Drew1-May-09 6:12 
AnswerRe: Connecting to a camera Pin
Dave Kreskowiak1-May-09 7:13
mveDave Kreskowiak1-May-09 7:13 
QuestionFileinfo of image from imagelist Pin
Aljaz1111-May-09 5:53
Aljaz1111-May-09 5:53 
AnswerRe: Fileinfo of image from imagelist Pin
Ennis Ray Lynch, Jr.1-May-09 6:12
Ennis Ray Lynch, Jr.1-May-09 6:12 
AnswerRe: Fileinfo of image from imagelist Pin
Tom Lawrance1-May-09 6:15
professionalTom Lawrance1-May-09 6:15 
GeneralRe: Fileinfo of image from imagelist Pin
Aljaz1111-May-09 6:38
Aljaz1111-May-09 6:38 
GeneralRe: Fileinfo of image from imagelist Pin
Tom Lawrance4-May-09 5:04
professionalTom Lawrance4-May-09 5:04 
Questionextracting object boundary in image Pin
safaa841-May-09 4:19
safaa841-May-09 4:19 
AnswerRe: extracting object boundary in image Pin
Dave Kreskowiak1-May-09 5:21
mveDave Kreskowiak1-May-09 5:21 
AnswerRe: extracting object boundary in image Pin
Member 10339071-May-09 10:12
Member 10339071-May-09 10:12 
QuestionnVidia PhysX & C# ? Pin
Mohammad Dayyan1-May-09 3:18
Mohammad Dayyan1-May-09 3:18 
AnswerRe: nVidia PhysX & C# ? Pin
Nagy Vilmos1-May-09 4:00
professionalNagy Vilmos1-May-09 4:00 
GeneralRe: nVidia PhysX & C# ? Pin
Mohammad Dayyan1-May-09 4:07
Mohammad Dayyan1-May-09 4:07 
AnswerRe: nVidia PhysX & C# ? Pin
Jimmanuel1-May-09 4:38
Jimmanuel1-May-09 4:38 
GeneralRe: nVidia PhysX & C# ? Pin
Mohammad Dayyan1-May-09 4:51
Mohammad Dayyan1-May-09 4:51 
Questionmanaging multiple socket connections !? Pin
rareseu1-May-09 3:14
rareseu1-May-09 3:14 
AnswerRe: managing multiple socket connections !? Pin
Ravadre1-May-09 3:33
Ravadre1-May-09 3:33 
rareseu wrote:
i've checked the web and msdn but most exmpales are either too convoluted or use different mechanics than mine


Maybe your mechanism isn't right then? Smile | :) .

1. The simplest way is creating a thread that will call accept in a loop. For each accepted thread you create new client thread, pass new socket there and voila. Drawback is that you will use 1 socket per connection, so managing a lot of sockets could be expensive. (btw, for each client socket, you can use synchronous operations now).
2. A bit more complicated, but more robust solution is to use asynchrounous communication. Then, foreach connected client, you create him a read buffer, write buffer, supply callbacks methods and just invoke BeginRead/Write. Your callbacks methods will be ran automatically when some data will arive (read) or was sent (write). In callback methods, what you should do is call EndRead/Write to get data, do some quick processing (fe. copy received data to some external buffer) and invoke Begin methods once again, and so on, and so on Smile | :) .
GeneralRe: managing multiple socket connections !? Pin
rareseu1-May-09 4:23
rareseu1-May-09 4:23 
GeneralRe: managing multiple socket connections !? Pin
Ravadre1-May-09 4:54
Ravadre1-May-09 4:54 
GeneralRe: managing multiple socket connections !? Pin
rareseu1-May-09 5:19
rareseu1-May-09 5:19 
QuestionHow to check files exists *.xml Pin
Hema Bairavan1-May-09 2:53
Hema Bairavan1-May-09 2:53 

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.