![]()  | 
![]()  | 
![]()  | 
![]()  | 
![]()  | 
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.
![]()  | 
Before, when an application used to call name_open()
to connect to a service, the server was not aware of that.
This has been changed now  --a _IO_CONNECT/_IO_CONNECT_OPEN
message is actually sent to the server.
 The server application has to be modified to handle a possible _IO_CONNECT message coming in. See the example code in name_attach() to see how to handle this message.  | 
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()
![]()  | 
![]()  | 
![]()  | 
![]()  |