![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Open a name for a server connection
#include <sys/iofunc.h> #include <sys/dispatch.h> int name_open( const char * name, int flags );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The name_open() function opens name for a server connection. No ordering is guaranteed when accessing resources on other nodes.
![]() |
In the past, when an application used name_open() to connect to a service, the server wasn't notified. Now, an _IO_CONNECT message with a subtype of _IO_CONNECT_OPEN is sent to the server. The server application must be able handle this message. For an example, see the documentation for name_attach(). |
A nonnegative integer representing a side-channel connection ID (see ConnectAttach()), or -1 if an error occurred (errno is set).
See name_attach().
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
ConnectAttach(), name_attach(), name_detach(), name_close(), open()
Message Passing chapter of Getting Started with QNX Neutrino
![]() |
![]() |
![]() |
![]() |