Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/c/connectdetach.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/c/connectdetach.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/c/connectdetach.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/c/connectdetach.html on line 8
Break a connection between a process and a channel
#include <sys/neutrino.h>
int ConnectDetach( int coid );
int ConnectDetach_r( int coid );
- coid
- The connection ID of the connection you want to break.
libc
Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.
The ConnectDetach() and ConnectDetach_r()
kernel calls detach the connection specified by the coid
argument. If any threads are blocked on the connection
(MsgSendv()) at the time the
connection is detached, the send fails and returns with an error.
These functions are identical except in the way they indicate errors.
See the Returns section for details.
These calls don't block.
The only difference between these functions is the way they indicate errors:
- ConnectDetach()
- If an error occurs, the function returns -1 and sets
errno.
Any other value returned
indicates success.
- ConnectDetach_r()
- EOK is returned on success. This function does NOT set errno.
If an error occurs, the function returns a value in the Errors section.
- EINVAL
- The connection specified by coid doesn't exist.
QNX Neutrino
Safety: | |
Cancellation point |
Yes |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
ConnectAttach(),
MsgSendv()
Message Passing
chapter of Getting Started with QNX Neutrino
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/c/connectdetach.html on line 155
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/c/connectdetach.html on line 155