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 2 1435 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
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...
|
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...
|
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.
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
|
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...
| |