AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database

Socket_Creat - socket()

In:     R0 = Protocol family
     R1 = Socket type
     R2 = Protocol

Out:     R0 = Socket descriptor

This call creates a new socket of a given type and using a given protocol.  If the protocol is left unspecified (passed as zero), a default applicable to that socket type will be used.

The internet protocol family (PF_INET) is the only one supported by this module. Three socket type are supported:

SOCK_STREAM - Stream orientated connections providing bi-directional sequenced, reliable transfer of byte streams. The only protocol of this type currently supported is the transmission control protocol (TCP).

SOCK_DGRAM - Connectionless, messages based protocols providing unreliable, non-sequence communication. The only protocol of this type currently supported is the user datagram protocol (UDP).

SOCK_RAW - Low level access to the underlying packet based transport mechanism to allow the implementation of alternative higher level protocols.

Note that this call will not give the socket an address, or connect it to any remote address. The socket can be given an address explicitly using the Socket_Bind call, or it will be assigned one automatically when it is first used to send data or to connect to a remote address.


[sh-index] Back to list of manuals