Summary

The UDP protocol is ideal for lightweight message-oriented servers that do not require a high degree of reliability. The Internet chat system described in this chapter is a good example of such an application.

Although the chat system is fully functional, it lacks many features. For one thing, the system doesn't provide a way to notify you when a specific user logs in to the system (called a "hot list" in some systems). This feature would be straightforward to add. Another deficiency of the system is that it doesn't provide anything in the way of long-term user registration and authentication. Anyone can log in using any nickname, and as soon as the system is killed and restarted, all information on registered users is lost. The only ...

Get Network Programming with Perl now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.