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

C#

 
GeneralRe: Consider 3 or 5 textbox which will be filled by user at runtime and these values should assigned to radio button text will be created dynamically. Pin
B875-Nov-08 22:44
B875-Nov-08 22:44 
GeneralRe: Consider 3 or 5 textbox which will be filled by user at runtime and these values should assigned to radio button text will be created dynamically. Pin
Shyam Bharath5-Nov-08 22:52
Shyam Bharath5-Nov-08 22:52 
GeneralRe: Consider 3 or 5 textbox which will be filled by user at runtime and these values should assigned to radio button text will be created dynamically. Pin
J4amieC5-Nov-08 23:18
J4amieC5-Nov-08 23:18 
AnswerRe: [modified - To remove stupidly long subject line] Pin
DaveyM695-Nov-08 23:27
professionalDaveyM695-Nov-08 23:27 
QuestionAsync callback usage in TCP server application Pin
Metal765-Nov-08 21:58
Metal765-Nov-08 21:58 
AnswerRe: Async callback usage in TCP server application Pin
Nicholas Butler6-Nov-08 0:18
sitebuilderNicholas Butler6-Nov-08 0:18 
GeneralRe: Async callback usage in TCP server application Pin
Metal766-Nov-08 0:56
Metal766-Nov-08 0:56 
GeneralRe: Async callback usage in TCP server application Pin
Nicholas Butler6-Nov-08 1:41
sitebuilderNicholas Butler6-Nov-08 1:41 
Metal76 wrote:
Do you mean something like the following?


Yes, that's it.

Metal76 wrote:
1) Which is the correct way to gracefully shutdown the server app? I know for sure that I have to close all the client sockets; are there any other resources to shutdown in the async pattern I'm following?


If your protocol doesn't have any command messages to send when closing, all you have to do is call Shutdown and then Dispose.

Metal76 wrote:
So, it seems to me that keeping a clientList is only useful when I want to shutdown the server (so that I can dispose of each client socket) and if I want to offer to the users of my class the possibility to perform actions on connected clients (e.g. check state of client A, forcibly shutdown connection with client B etc.).

Is this right?


Yes, that's right.

Nick

----------------------------------
Be excellent to each other Smile | :)

GeneralRe: Async callback usage in TCP server application Pin
Metal766-Nov-08 2:14
Metal766-Nov-08 2:14 
Questioncrystal report with dynamic columns? Pin
kieu duc khuong5-Nov-08 21:21
kieu duc khuong5-Nov-08 21:21 
AnswerRe: crystal report with dynamic columns? Pin
Programm3r6-Nov-08 1:22
Programm3r6-Nov-08 1:22 
AnswerRe: crystal report with dynamic columns? Pin
nelsonpaixao6-Nov-08 13:27
nelsonpaixao6-Nov-08 13:27 
GeneralRe: crystal report with dynamic columns? Pin
kieu duc khuong6-Nov-08 14:23
kieu duc khuong6-Nov-08 14:23 
GeneralRe: crystal report with dynamic columns? Pin
nelsonpaixao7-Nov-08 14:06
nelsonpaixao7-Nov-08 14:06 
QuestionContextSwitchDeadlock Pin
dec825-Nov-08 21:03
dec825-Nov-08 21:03 
AnswerRe: ContextSwitchDeadlock Pin
Nicholas Butler5-Nov-08 23:41
sitebuilderNicholas Butler5-Nov-08 23:41 
AnswerRe: ContextSwitchDeadlock Pin
DaveyM695-Nov-08 23:43
professionalDaveyM695-Nov-08 23:43 
QuestionFunction keys Pin
sram155-Nov-08 20:40
sram155-Nov-08 20:40 
AnswerRe: Function keys Pin
leppie5-Nov-08 22:38
leppie5-Nov-08 22:38 
AnswerCP IGNORE: Cross post three forums Pin
leckey6-Nov-08 10:06
leckey6-Nov-08 10:06 
QuestionProblem running a .bat file from a C# forms application Pin
Member 41835605-Nov-08 20:08
Member 41835605-Nov-08 20:08 
AnswerRe: Problem running a .bat file from a C# forms application Pin
Franck Paquier5-Nov-08 20:54
Franck Paquier5-Nov-08 20:54 
GeneralI agree it looks like a working dir problem - specify the error that you get Pin
Natza Mitzi5-Nov-08 22:39
Natza Mitzi5-Nov-08 22:39 
GeneralRe: Problem running a .bat file from a C# forms application Pin
#realJSOP5-Nov-08 23:31
professional#realJSOP5-Nov-08 23:31 
QuestionCrystal report Pin
Maddie from Dartford5-Nov-08 19:27
Maddie from Dartford5-Nov-08 19:27 

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.