Man Page: sockets.socketpair
Operating Environment: debian
Section: 3kaya
Sockets.socketPair(3kaya) Kaya module reference Sockets.socketPair(3kaya)NAMESockets::socketPair - Create a joined pair of socketsSYNOPSISPair<Socket, Socket> socketPair( )DESCRIPTIONThis function creates a pair of sockets that can be used for bi-directional communication. The most common use of this is for setting up communications between a process and its Posix.fork(3kaya) ()ed child - each process closes one of the sockets after the fork. sockets = socketPair(); pid = fork(); if (pid == 0) { // child process close(sockets.fst); // do something } else { close(sockets.snd); // do something else }AUTHORSKaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/LICENSEThe Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.RELATEDSockets.Socket(3kaya) Sockets.close(3kaya) Posix.fork(3kaya) Kaya October 2012 Sockets.socketPair(3kaya)
| Related Man Pages |
|---|
| sockets.recv(3kaya) - debian |
| prelude.isalnum(3kaya) - debian |
| prelude.isdigit(3kaya) - debian |
| prelude.isgraph(3kaya) - debian |
| prelude.isspace(3kaya) - debian |
| Similar Topics in the Unix Linux Community |
|---|
| sockets and ports |
| Sockets and File descriptors |
| Does Posix support kernel level threading? |
| Raw Sockets Programming |
| Machine dependent problems when using Sockets. |