The X-Windows Socket Widget Class ("Class" is used here in the object-oriented -programming sense of the word) was devised to simplify the task of implementing network connections for graphical-userinterface (GUI) computer programs. UNIX Transmission Control Protocol/Internet Protocol (TCP/IP) socket programming libraries require many method calls to configure, operate, and destroy sockets. Most XWindows GUI programs use widget sets or toolkits to facilitate management of complex objects. The widget standards facilitate construction of toolkits and application programs. The X-Windows Socket Widget Class encapsulates UNIX TCP/IP socket-management tasks within the framework of an X Windows widget. Using the widget framework, X Windows GUI programs can treat one or more network socket instances in the same manner as that of other graphical widgets, making it easier to program sockets. Wrapping ISP socket programming libraries inside a widget framework enables a programmer to treat a network interface as though it were a GUI.

This program was written by Matthew R. Barry of United Space Alliance for Johnson Space Center. For further information, contact the Johnson Innovative Partnerships Office at (281) 483-3809. MSC-23581

NASA Tech Briefs Magazine

This article first appeared in the February, 2006 issue of NASA Tech Briefs Magazine.

Read more articles from the archives here.