Home Page Icon
Home Page
Table of Contents for
Tcl 8.5 Network Programming
Close
Tcl 8.5 Network Programming
by Piotr Beltowski, Wojciech Kocjan
Tcl 8.5 Network Programming
Tcl 8.5 Network Programming
Tcl 8.5 Network Programming
Credits
About the Authors
About the Reviewers
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. Introducing Tcl
What is Tcl/Tk
Extensions
Tk
Installation
Windows
Unix-like systems
Installation of additional Tcl packages
Additional tools
Eclipse
Komodo
tkcon — an alternate Tcl shell
Tcl syntax
Tcl commands documentation syntax
Running the script
Running commands directly in the tclsh interpreter
Variables
Grouping
Nesting commands
Data types
Lists
Arrays
array size
Dictionaries
Mathematical expressions—expr
Flow control and loop instructions
Flow control
Loops
Defining your own commands
Summary
2. Advanced Tcl Features
Tcl features
Working with time and date
Tcl data types
Global, namespace, and local variables
Stack frames
Object-oriented programming
Class definition
Inheritance
Object definitions
Using mixins
Forwarding methods
Additional information
Accessing files
Reading and writing files
Configuring channel options
File management
Filename related operations
File information
Listing files
Current working directory
Packages in Tcl
Package loading
Creating a package
Tcl modules
Event-driven programming
Tcl event types
Entering the event loop
Events and stack frames
Channel events
Timer and idle events
Robust scheduling with tclcron
Multithreaded applications
Managing threads
Shared variables
Transferring channels
Summary
3. Tcl Standalone Binaries
Understanding the executable file structure
Learning the Metakit database
Working with MetaKit from Tcl
Learning more about virtual file systems
Getting into the details of VFS and Metakit
Learning Tclkit
Starkit and SDX
Creating a Starkit file
Internal structure of starkits
Using resource files in starkits
Putting additional packages into a starkit
Format of the starkit file
Interactions between different starkit files
Knowing the Starpack technology
Practical example—the Hibernator application
Advanced topics—self updating
Other solutions
Summary
4. Troubleshooting Tcl applications
Logging
Log package
Initialization
Available log levels
Enabling or disabling log levels
Replacing the default implementation of the logging command
Recap of the log package
Logger package
Initialization
Available log levels
Enabling or disabling log levels
Tracing
Changing the implementation of the logging / tracing command
Appenders
Recap of the logger package
Audit
Recap of the audit package
Debugging
Tcl Dev Kit Inspector
Tcl Dev Kit Debugger
Local Debugging
Remote debugging
Recap of the Tcl Dev Kit Debugger
TclPro Debugger
Summary
5. Data Storage
Internationalizations
Encoding issues
Translating your application into different languages
Using SQL and databases in Tcl
Connecting to MySQL
Connecting to PostgreSQL
Using SQLite
Managing databases from SQLiteStudio
Other databases
Handling XML in Tcl
Storing raw Tcl values
Summary
6. Networking in Tcl
Using TCP sockets
Creating server sockets
Connecting over TCP
Using nonblocking sockets
Handling channel events
Transferring binary data
Transferring data using the fcopy command
Handling errors
Buffering
Using threads for networking
Using threads and thread pools
Connecting to our service
Using UDP sockets
Creating a UDP-based client
Implementing service using UDP
Sending reliable messages
Comparing TCP and UDP: streams vs. datagrams
Summary
7. Using Common Internet Services
Handling e-mail
Learning MIME
Content type
Multipart messages
MIME in Tcl
Creating messages
Multipart elements
Sending e-mails
Automated e-mail sending
Creating template based e-mails
Receiving e-mails
Using POP3 protocol in Tcl
Listing all messages
Retrieving e-mails using POP3
Parsing incoming e-mails
Transferring files and data
Resources and uri package
Using HTTP
Retrieving data over HTTP
Submitting information using GET and POST
Advanced topics
Cookies in Tcl
HTTP and encryption
Retrieving RSS information
Using FTP
Establishing connections
Retrieving files
Uploading files
Listing files and directories
Summary
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Cover
Next
Next Chapter
Tcl 8.5 Network Programming
Tcl 8.5 Network Programming
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset