|
|
|
Foundation ::
Networking Applications ::
SSL
|
SSL
The Simple Sockets Library
|
 |
Moderators: Adopt This Application! |
SOURCE CODE AVAILABLE
|
|
The Simple Sockets Library (SSL) allows C programmers to develop systems
of cooperating programs using Berkeley streaming Sockets running under
the TCP/IP protocol over Ethernet. The SSL provides a simple way to move
information between programs running on the same or different machines and
does so with little overhead. The SSL can create three types of Sockets:
namely a server, a client, and an accept Socket. The SSL's Sockets are designed
to be used in a fashion reminiscent of the use of FILE pointers so
that a C programmer who is familiar with reading and writing files will immediately
feel comfortable with reading and writing with Sockets.
The SSL consists of three parts: the library, PortMaster, and utilities.
The user of the SSL accesses it by linking programs to the SSL
library. The PortMaster initializes connections between clients and
servers. The PortMaster also supports a "firewall" facility to keep out
socket requests from unapproved machines. The "firewall" is a file which
contains Internet addresses for all approved machines, and accepts wildcards.
There are four utilities provided with the SSL. One can be used to debug
programs that make use of the SSL. Another lists the servers and port numbers
on requested machine(s). The third forces the PortMaster to remove a
server name from its list. The fourth is useful on Unix machines to automatically
fire up the PortMaster in shell scripts.
The package also includes several example programs, three of which
are in pairs. With the first pair, one program makes multiple accepts on
one server, and the second repeatedly attempts to connect a client to some
server at one second intervals. With the second pair, one may send and receive
out of band data. The third pair comprises a very small server and
client example. The last program illustrates setting up sockets with SIGIO
signal handling (every receipt of data also will cause a SIGIO to be sent to
the program) and is available to Unix platforms only.
SSL carries the NASA case number GSC-13520. It was originally released as part of the NASA COSMIC collection.
|
|
More software from National Technology Transfer Center
|
|
|
|
|
|