Cross platform point-to-point inter-process communication with Unix=domain sockets, implemented via named pipes on Windows. These connection are always bidirectional, i.e. you can read from them and also write to them.
conn_create_unix_socket(filename = NULL, encoding = "") conn_connect_unix_socket(filename, encoding = "") conn_accept_unix_socket(con) conn_unix_socket_state(con)
File name of the socket. On Windows it the name of the
pipe within the
Encoding to assume when reading from the socket.
Connection. An error is thrown if not a socket connection.
conn_create_unix_socket() creates a server socket. The new socket
is listening at
conn_connect_unix_socket() creates a client socket and connects it to
a server socket.
conn_accept_unix_socket() accepts a client connection at a server
conn_unix_socket_state() returns the state of the socket. Currently it
It is possible that other states (e.g. for a closed socket) will be added
in the future.
poll() works on sockets, but only polls for data to read, and
currently ignores the write-end of the socket.
poll() also works for accepting client connections. It will return
"connect"is a client connection is available for a server socket.
After this you can call
conn_accept_unix_socket() to accept the
A new socket connection.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.