Click here to Skip to main content
15,897,187 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: How to check files exists *.xml Pin
Jimmanuel1-May-09 3:13
Jimmanuel1-May-09 3:13 
GeneralRe: How to check files exists *.xml Pin
Hema Bairavan1-May-09 3:22
Hema Bairavan1-May-09 3:22 
GeneralRe: How to check files exists *.xml Pin
Jimmanuel1-May-09 3:29
Jimmanuel1-May-09 3:29 
GeneralRe: How to check files exists *.xml Pin
Hema Bairavan1-May-09 3:31
Hema Bairavan1-May-09 3:31 
GeneralRe: How to check files exists *.xml Pin
Jimmanuel1-May-09 3:35
Jimmanuel1-May-09 3:35 
Questionrunning an application through network Pin
Genius.Boy1-May-09 2:31
Genius.Boy1-May-09 2:31 
AnswerRe: running an application through network Pin
Nagy Vilmos1-May-09 3:53
professionalNagy Vilmos1-May-09 3:53 
AnswerRe: running an application through network Pin
Dave Kreskowiak1-May-09 4:02
mveDave Kreskowiak1-May-09 4:02 
QuestionProblem with appconfig while uninstalling project Pin
Narendra Reddy Vajrala1-May-09 2:09
Narendra Reddy Vajrala1-May-09 2:09 
AnswerRe: Problem with appconfig while uninstalling project Pin
Mycroft Holmes1-May-09 2:24
professionalMycroft Holmes1-May-09 2:24 
GeneralRe: Problem with appconfig while uninstalling project Pin
Narendra Reddy Vajrala1-May-09 2:40
Narendra Reddy Vajrala1-May-09 2:40 
QuestionMULTI PROCESS Pin
KALAMN1-May-09 2:06
KALAMN1-May-09 2:06 
AnswerRe: MULTI PROCESS Pin
Genius.Boy1-May-09 2:08
Genius.Boy1-May-09 2:08 

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.