prev UP NEXT C++ socket classes for OS/2

1.2.1: Descriptors

Unlike UNIX, OS/2 sockets are system wide numbers which are not descriptors and can not be redirected with dup or dup2. This means it is impossible to start a sub-process which will take it's standard input or standard output from a socket. Because of this, the sockunix classes are mostly useless for OS/2. You can not make a subprocess read/write a socket of type AF_UNIX as its standard input or output. Named or unnamed pipes are mostly used for OS/2 interprocess communications.

Because OS/2 sockets are not descriptors, the functions read, write, and close do not work for them. Code must be modified to call recv, send, and soclose instead.