Click here to Skip to main content
16,004,778 members
Home / Discussions / C#
   

C#

 
GeneralRe: Validate java SAML signature from C# Pin
adrya23-Sep-09 19:03
adrya23-Sep-09 19:03 
QuestionHow can I get the local machine's IP address in a Windows app ? Pin
Rahad Rahman16-Sep-09 21:23
professionalRahad Rahman16-Sep-09 21:23 
AnswerRe: How can I get the local machine's IP address in a Windows app ? Pin
stancrm16-Sep-09 21:26
stancrm16-Sep-09 21:26 
GeneralRe: How can I get the local machine's IP address in a Windows app ? Pin
Calla16-Sep-09 21:36
Calla16-Sep-09 21:36 
AnswerRe: How can I get the local machine's IP address in a Windows app ? Pin
Harvey Saayman16-Sep-09 22:03
Harvey Saayman16-Sep-09 22:03 
AnswerRe: How can I get the local machine's IP address in a Windows app ? Pin
Luc Pattyn17-Sep-09 2:49
sitebuilderLuc Pattyn17-Sep-09 2:49 
AnswerRe: How can I get the local machine's IP address in a Windows app ? Pin
carlecomm22-Sep-09 2:02
carlecomm22-Sep-09 2:02 
QuestionTCP Servers Pin
Harvey Saayman16-Sep-09 21:18
Harvey Saayman16-Sep-09 21:18 
Hi guys

So the past few weeks I've been doing research and playing around with TCP servers. I've finally got the one type of server architecture down and I understand the why's and the how's.

Basically the server object creates a TcpListener in its own thread to listen for client connections. When this listener thread accepts a client it creates a client object for it and handles communication(which is the blocking type) for that client in its own thread. So 1 thread per client.

I get that this doesn't scale well and why.

Now I need to move on to the non blocking way. I believe its called "asynchronous TCP sockets", using BeginConnect(), BeginAccept(), BeginSend(), BeginReceive(), EndConnect(), EndAccept(), EndSend()and EndReceive()

Now I've found alot of articles but what I really need is a bare bones example and explanation. Alot of these articles are built around custom libraries and implementations of this server architecture and I find it difficult to find the core concepts in between other code.

So my question, can anyone recommend an article where this is explained well enough and in a bare bones type manor? I'm really more interested in how it works instead of copying the code and modifying it for my needs.

Thanks Smile | :)

Harvey Saayman - South Africa
Software Developer
.Net, C#, SQL

you.suck = (you.Occupation == jobTitles.Programmer && you.Passion != Programming)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111

AnswerRe: TCP Servers Pin
N a v a n e e t h16-Sep-09 22:13
N a v a n e e t h16-Sep-09 22:13 
GeneralRe: TCP Servers Pin
Harvey Saayman17-Sep-09 0:51
Harvey Saayman17-Sep-09 0:51 
Questionmodify a css property in code behind Pin
firefeet16-Sep-09 20:50
firefeet16-Sep-09 20:50 
AnswerRe: modify a css property in code behind Pin
firefeet16-Sep-09 23:03
firefeet16-Sep-09 23:03 
AnswerRe: modify a css property in code behind Pin
carlecomm22-Sep-09 2:00
carlecomm22-Sep-09 2:00 
QuestionHelp regarding dynamic 2D array ? Pin
Saad Shuja16-Sep-09 20:26
Saad Shuja16-Sep-09 20:26 
AnswerRe: Help regarding dynamic 2D array ? Pin
OriginalGriff16-Sep-09 21:35
mveOriginalGriff16-Sep-09 21:35 
QuestionQuery regarding Domain knowledge related Url Pin
Tridip Bhattacharjee16-Sep-09 20:08
professionalTridip Bhattacharjee16-Sep-09 20:08 
QuestionGlobal.asax file with Window Applications Pin
Inderjeet Kaur16-Sep-09 19:40
Inderjeet Kaur16-Sep-09 19:40 
AnswerRe: Global.asax file with Window Applications Pin
Calla16-Sep-09 20:06
Calla16-Sep-09 20:06 
AnswerRe: Global.asax file with Window Applications Pin
Arun Jacob16-Sep-09 20:15
Arun Jacob16-Sep-09 20:15 
AnswerRe: Global.asax file with Window Applications Pin
carlecomm22-Sep-09 0:54
carlecomm22-Sep-09 0:54 
QuestionWebbrowser and print ? Pin
Mohammad Dayyan16-Sep-09 19:19
Mohammad Dayyan16-Sep-09 19:19 
AnswerRe: Webbrowser and print ? Pin
Richard MacCutchan17-Sep-09 5:39
mveRichard MacCutchan17-Sep-09 5:39 
GeneralRe: Webbrowser and print ? Pin
carlecomm22-Sep-09 0:56
carlecomm22-Sep-09 0:56 
Questionusing google api how can i find that a website is using adsense Pin
Anil Veeraghattapu 416-Sep-09 19:04
Anil Veeraghattapu 416-Sep-09 19:04 
AnswerRe: using google api how can i find that a website is using adsense Pin
Christian Graus16-Sep-09 19:05
protectorChristian Graus16-Sep-09 19:05 

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.