Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Tcl 8.5 Network Programming

You're reading from  Tcl 8.5 Network Programming

Product type Book
Published in Jul 2010
Publisher Packt
ISBN-13 9781849510967
Pages 588 pages
Edition 1st Edition
Languages
Concepts

Table of Contents (18) Chapters

Tcl 8.5 Network Programming
Credits
About the Authors
About the Reviewers
1. Preface
1. Introducing Tcl 2. Advanced Tcl Features 3. Tcl Standalone Binaries 4. Troubleshooting Tcl applications 5. Data Storage 6. Networking in Tcl 7. Using Common Internet Services 8. Using Additional Internet Services 9. Learning SNMP 10. Web Programming in Tcl 11. TclHttpd in Client-Server Applications 12. SOAP and XML-RPC 13. SSL and Security

Creating HTTP-based applications


Client-server applications may use various ways to communicate. Some of them are:

  • One way is to keep a permanent connection between the server and all clients. This approach requires creating protocol for sending messages both from the server to client and the other way around. While this approach is used by many applications, it is quite difficult to scale and can cause issues for long-running applications—such as detection of connections broken on one side, without proper end-of-file events received by other side.

  • Another possibility is to use HTTP instead of a real time connection. HTTP based applications typically use a polling mechanism—that is they periodically query the server to determine if there is anything the client should perform. Using HTTP and timers simplifies implementation a lot, and fits very nicely into Tcl's event-driven programming.

Using HTTP means that our application can also use any HTTP proxy needed by location the client is in,...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}