Click here to Skip to main content
15,886,137 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can i write a problem so the webpages comes to me Pin
Cybernate6-Mar-09 8:49
Cybernate6-Mar-09 8:49 
GeneralRe: How can i write a problem so the webpages comes to me Pin
Jim Crafton6-Mar-09 18:14
Jim Crafton6-Mar-09 18:14 
AnswerRe: How can i write a problem so the webpages comes to me Pin
WinSolution6-Mar-09 9:42
WinSolution6-Mar-09 9:42 
Questionmulti threaded tcp listeners possible Pin
Mubeen.asim6-Mar-09 7:40
Mubeen.asim6-Mar-09 7:40 
AnswerRe: multi threaded tcp listeners possible Pin
harold aptroot6-Mar-09 7:48
harold aptroot6-Mar-09 7:48 
GeneralRe: multi threaded tcp listeners possible Pin
Mubeen.asim6-Mar-09 8:00
Mubeen.asim6-Mar-09 8:00 
GeneralRe: multi threaded tcp listeners possible Pin
harold aptroot6-Mar-09 8:47
harold aptroot6-Mar-09 8:47 
GeneralRe: multi threaded tcp listeners possible Pin
caix7-Mar-09 16:08
caix7-Mar-09 16:08 
Hey Max,

Harold is dead on - you cannot run multiple listeners you MUST have only one listener, however you can then run separate threads to actually convert the socket into a connection...

I eventually used: http://www.codeproject.com/KB/IP/Generic_TCP_IP_server.aspx?fid=431256&select=2489157&fr=26#xx0xx[^]

The code is easy to understand and very powerful - i've added encryption/authentication as i went through the code - took a couple of days and ive been trying to get a solid TCP stack working with async methods for a few weeks!

However i did eventually used the async method for the listening socket, everything else is similar to the code in the link

On the 'new connection' i pass the async socket result to a connection event in a separate thread - as the code above looks at - minimising the time taken to process new socket before your listener can go back and wait for the next connection.

HAving said all that i haven't load tested it just yet Smile | :)

Good luck, C
GeneralRe: multi threaded tcp listeners possible Pin
mcldev10-Mar-09 10:45
mcldev10-Mar-09 10:45 
GeneralRe: multi threaded tcp listeners possible Pin
Mubeen.asim10-Mar-09 21:21
Mubeen.asim10-Mar-09 21:21 
AnswerRe: multi threaded tcp listeners possible Pin
Ennis Ray Lynch, Jr.6-Mar-09 17:14
Ennis Ray Lynch, Jr.6-Mar-09 17:14 
QuestionWin32_CompurterSystem: Rename, JoinDomainOrWorkgroup, UnjoinDomainOrWorkgroup - HELP Pin
mcldev6-Mar-09 5:18
mcldev6-Mar-09 5:18 
AnswerRe: Win32_CompurterSystem: Rename, JoinDomainOrWorkgroup, UnjoinDomainOrWorkgroup - HELP Pin
Uros Calakovic6-Mar-09 10:09
Uros Calakovic6-Mar-09 10:09 
GeneralRe: Win32_CompurterSystem: Rename, JoinDomainOrWorkgroup, UnjoinDomainOrWorkgroup - HELP Pin
mcldev6-Mar-09 15:41
mcldev6-Mar-09 15:41 
GeneralRe: Win32_CompurterSystem: Rename, JoinDomainOrWorkgroup, UnjoinDomainOrWorkgroup - HELP Pin
Uros Calakovic6-Mar-09 21:06
Uros Calakovic6-Mar-09 21:06 
GeneralRe: Win32_CompurterSystem: Rename, JoinDomainOrWorkgroup, UnjoinDomainOrWorkgroup - HELP Pin
mcldev10-Mar-09 10:46
mcldev10-Mar-09 10:46 
Questionproblems with my C# application Pin
laziale6-Mar-09 4:26
laziale6-Mar-09 4:26 
AnswerRe: problems with my C# application Pin
musefan6-Mar-09 4:31
musefan6-Mar-09 4:31 
GeneralRe: problems with my C# application Pin
laziale6-Mar-09 4:47
laziale6-Mar-09 4:47 
GeneralRe: problems with my C# application Pin
musefan6-Mar-09 4:55
musefan6-Mar-09 4:55 
GeneralRe: problems with my C# application Pin
laziale6-Mar-09 5:25
laziale6-Mar-09 5:25 
GeneralRe: problems with my C# application Pin
musefan6-Mar-09 5:30
musefan6-Mar-09 5:30 
GeneralRe: problems with my C# application Pin
laziale6-Mar-09 5:53
laziale6-Mar-09 5:53 
GeneralRe: problems with my C# application Pin
musefan6-Mar-09 6:00
musefan6-Mar-09 6:00 
GeneralRe: problems with my C# application Pin
Eddy Vluggen6-Mar-09 6:15
professionalEddy Vluggen6-Mar-09 6:15 

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.