473,599 Members | 3,160 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Looking for books / references for Network programming using mutlithreading

I need to design a server application that will handle an unknown number of
clients. (currently 25+) The initial plan was to create a new TCP socket
connection for each client. When the client needed a piece of information,
it would send a request to the server and wait for a response. The
connection would "stay-alive" and would be readily available. If the
connection was lost, the client application would close down. I
realized that in order to serve more than one client at a time, I needed to
use multithreading. I also thought about using UDP with some sort of error
recovery scheme. I could really use some advise on the correct way to
proceed.

I am looking for a great resource (book / website) that can fill in the
gaps.

I have already purchased and read these books:

1. C# Network Programming (Paperback) by Richard Blum

2. TCP/IP Sockets in C#, First Edition : Practical Guide for Programmers
(The Practical Guides) (Paperback)
by David Makofske, Michael J. Donahoo, Kenneth L. Calvert

I was actually disappointed in these books. Neither book gave code that
could be considered product-quality.
The sample code for Threading in the book by Richard Blum is considered not
"thread-safe". It refers to a control on a form from a different thread.
I am told this is incorrect.
The other book "TCP/IP Sockets in C#" does not invest much time in this
topic.
I truly appreciate the effort. Please let me know what I should do to
advance my skills.

Thanks

Dan Tallent
Mar 30 '06 #1
2 1435
Hello, Dan!

For server examples you can look at
(http://msdn.microsoft.com/library/de...ogthrepool.asp )
( http://msdn.microsoft.com/msdnmag/is...s/default.aspx )

For UDP usage examples you can look at

( http://msdn.microsoft.com/msdnmag/is...P/default.aspx )

Hope, this will help.
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Mar 31 '06 #2
Thank you! These links were quite helpful.

Dan
"Vadym Stetsyak" <va*****@ukr.ne t> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Hello, Dan!

For server examples you can look at
(http://msdn.microsoft.com/library/de...ogthrepool.asp
)
(
http://msdn.microsoft.com/msdnmag/is...s/default.aspx )

For UDP usage examples you can look at

( http://msdn.microsoft.com/msdnmag/is...P/default.aspx )

Hope, this will help.
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com

Apr 3 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2357
by: Tom Plunket | last post by:
Hey all- A friend of mine has built this interesting (to me) bit of hardware that's intended to communicate with a PC over ethernet. The hardware has an OS written in C, and has some PC-side testing software written in Delphi, all of which I have access to. The hardware communicates with the PC via UDP. I've been working on porting the PC "test" software to Python so that 1) I understand the code, 2) don't need to go buy Delphi to
13
2709
by: Gabriel Reid | last post by:
Greetings, I'm looking for any books that the members of this group may have to recommend for C#. I have experience with a number of programming languages (probably most relevant would have to be Java), and have already read 'C# for Java Developers' from Microsoft Press. I feel as though I have a decent understanding of C# now, but am interested in taking it to the next level. In particular, a book with good examples is what I'm...
7
3289
by: noid droid | last post by:
Greetings. I received 4 VB .NET books and looking through the indices and tables of contents, I see that none of them addresses multithreading in VB ..NET. I just bought a bunch of books because they were so cheap. Does anyone have any suggestions for books that cover multithreading? I have enough beginners books. I don't need any more. Need a good treatment of multithreading. I've never used it in VB 6. I want to learn about it...
12
2391
by: amogan | last post by:
**If interested & qualified, please reply with your resume directly to amogan@google.com** Referrals are always welcome!! Network System Test Engineer - Mountain View This position is available in Mountain View, CA.
0
7992
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8398
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8267
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6725
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5850
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5438
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3940
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2414
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1250
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.