Chapter Contents

Previous

Next
TCP/IP Socket Library Support for the CICS and Environment

Overview of the BSD UNIX Socket Library

BSD UNIX communications programming is based on the original UNIX framework, with some additions and elaborations to account for the greater complexity of interprocess communications. In traditional UNIX file I/O, an application issues an open call, which returns a file descriptor (a small integer) bound to a particular file or device. The application then issues a read or write call that causes the transfer of stream data. At the end of communications, the application issues a close call to terminate the interaction. Because interprocess communication often occurs over a network, the BSD UNIX socket library accounts for the numerous variables of network I/O, such as network protocols, and for the semantics of the UNIX file system.

A socket is an end point for interprocess communication, in this case, over a network running TCP/IP. Using semantics that depend on the type of socket, sockets can simultaneously transmit and receive data from another process. The socket interface can support a number of underlying transport mechanisms. Ideally, a program written with socket calls can be used with different network architectures and different local interprocess communication facilities with few or no changes. The SAS/C Compiler supports TCP/IP and the AF_INET Internet addressing family.


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.