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

7.1: Methods

In what follows,

sockunixbuf uns(ty, proto)
Constructs a sockunixbuf object uns with ty as its type and proto as its protocol number. proto defaults to 0.
sockunixbuf uns(sd)
Constructs a sockunixbuf from an open socket sd.
uns.open(ty, proto)
create a sockunixbuf object with ty as its type and proto as its protocol and assign the sockunixbuf object so created to *this. It returns this. proto defaults to 0.
uns.bind(path)
binds uns to the unix pathname path. It returns 0 on success and returns the errno on failure.
uns.connect(path)
connects uns to the unix pathname path. It returns 0 on success and returns the errno on failure.