[ Team LiB ] Previous Section Next Section

Network Sockets

The socket command provides access to TCP/IP sockets. There are C APIs to define new channels, and there are extensions that provide UDP and other protocols. Chapter 17 describes sockets starting on page 239. Example 43-4 on page 653 uses sockets as a replacement for the Tk send command.

info hostname

The info hostname command was added to find out your host identifier.

The fconfigure Command

The best way to use sockets is with event-driven I/O. The fileevent command provides part of the solution. You also need to be able to control the blocking behavior and buffering modes of sockets. The fconfigure command lets you do this and more. You can also control the newline translation modes and query socket-specific settings. The fconfigure command is described on page 231.

    [ Team LiB ] Previous Section Next Section