Creates a new socket in family aFamily of type aType and with protocol aProtocol. If successful, returns a new SciSocket.The address family. The only currently supported option for parameter aFamily is AFINET which is the ARPA Internet address formatThe protocol. The only currently supported option for parameter aProtocol is IP. This parameter sets the default protocol, which is automatically determined based on the aFamily and aType. i.e., with aFamily AFINET and aType of SOCKSTREAM the aType defaults to TCP. If aType is SOCKDGRAM, aType defaults to UDP.Note that all sockets are created as blocking by default (see socket). The blocking/non-blocking attribute can be changed at any time with the ioctl operation. Operations on blocking sockets that will block (e.g., send, sendTo, recv, recvFrom, accept, connect and close) must be made from a Smalltalk process that can afford to block.The socket: aFamily type: aType protocol: aProtocol operation is unsucessful if any of the following errors occur: ENOTINITIALISED, ENETDOWN, EAFNOSUPPORT, EINPROGRESS, EMFILE, ENOBUFS, EPROTONOSUPPORT, EPROTOTYPE, ESOCKTNOSUPPORT. For detailed information on these errors, see Error values.
|