h6. [[Internet]] h6(. » [[Internet SWI Calls|SWI Calls]] h6((. » Socket_Creat h2. Socket_Creat h5. (SWI &41200) |_<^{width:4em}. Entry | | |<^. R0 |<^. Domain | |<^. R1 |<^. Type | |<^. R2 |<^. Protocol, or 0 for default for socket type | |_<^{width:4em}. Exit | | |<^. R0 |<^. Socket descriptor | h4. Use The purpose of this call is to create a new socket of the type given for a specified protocol. This only allocates the resources for a new socket, it does not bind or connect it to anything. h4. Berkeley sockets equivalence This SWI directly corresponds to the function "socket":https://pubs.opengroup.org/onlinepubs/9699919799/functions/socket.html and would ordinarily be called from C using the <code>socket()</code> function in <code>socklib.h</code>. h4. See also * [[Internet]] * [[Socket_Bind]] * [[Socket_Connect]]