Description of TSocketStream :
TSocketStream is a easy to use non VCL class prepared to connect or listen connections via TCP/IP. It supports host name resolve via DNS (using the O.S. gethostbyname() call).It is syncronous, but it also has this two methods: CanWrite for client sockets, and CanAccept for listening sockets, thus allowing non-blocking implementations without the need for non-blocking sockets.The same class allows connecting to a remote host, or listening on any port and waiting por incoming connections. Examples for each case is included.Tested in Delphi 5, not tested in other versions or in Free Pascal.