| Share this post! | Vote this! |
|
In this lesson, you will create a simple chat-style server to which
multiple clients can connect. When one client sends a string message to
the server, the server forwards the message to all registered clients
that have not been specifically excluded. You should note that a real
chat application would be based on a more scalable and flexible design
to connect client and servers, such as a publish-and-subscribe design.
Creating a Simple Chat Server Using Delegates
In this exercise, you will implement a simple chat server and clients by using delegates.
Scenario
Each client will register a delegate with the server. Then, when a client sends a message to the server, the server forwards the message to all specified clients. This implementation uses delegates as a callback mechanism. more...
Creating a Simple Chat Server Using Delegates
In this exercise, you will implement a simple chat server and clients by using delegates.
Scenario
Each client will register a delegate with the server. Then, when a client sends a message to the server, the server forwards the message to all specified clients. This implementation uses delegates as a callback mechanism. more...



0 comments:
Post a Comment