A socket is an endpoint in a bi-directional communication channel. The other end can be in the same task (not usually very interesting), in another task on the same machine, or in a task on another machine that is accessed through a TCP/IP connection.
The foreign family 16!:
support sockets under NT and Win95. The Socket Driver is not available on the Macintosh. The Socket Driver works with 32 bit TCP/IP and does not work with a 16 bit TCP/IP stack.
File system\main\socket.ijs contains cover functions for the new Socket Driver. To load, enter:
load 'socket'
Directory system\examples\socket contains examples of using the Socket Driver to communicate between two J sessions. See system\examples\socket\socket.txt for details.
To use sockets you need to have TCP/IP support configured. The following is an excerpt from a FAQ:
[Q: How do I set up my computer for a TCP/IP network?]
1. In Control Panel, double-click the Network icon.
2. On the Configuration tab, click Add, and then double-click Protocol.
3. Click Microsoft, and then click TCP/IP
After it is installed, click TCP/IP on the Configuration tab of Network properties, and then click Properties. Configure your protocol per instructions from your system administrator.
The Socket Driver is a very direct mapping onto the Windows Sockets 1.1 API. interface. General documentation on sockets and the Windows API is relevant and useful for complete understanding of how best to make use of sockets. Web sites
www.stardust.com and www.sockets.com have lots of relevant information for a serious socket application developer. In particular, you might want to download the complete Windows Sockets 1.1 Specification from:
http://www.stardust.com/winsock/ws1.1_api
There are labs (Studio|Labs) on sockets.