File: SP_disconnect.3

package info (click to toggle)
spread 3.17.4-2
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 1,800 kB
  • ctags: 2,322
  • sloc: ansic: 15,666; sh: 2,611; java: 2,291; perl: 556; yacc: 523; makefile: 255; lex: 204; xml: 77
file content (37 lines) | stat: -rw-r--r-- 879 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.\" Process this file with
.\" groff -man -Tascii foo.1
.\"
.TH SP_DISCONNECT 3 "JULY 1998" SPREAD "User Manuals"
.SH NAME
SP_disconnect \- destroy connection between app and daemon
.SH SYNOPSIS
.B #include <sp.h>
.br
.BI "int SP_disconnect( mailbox " mbox );
.SH DESCRIPTION
.B SP_disconnect
should be called when the application is finished
with a connection to the Spread daemon.  The application may have
other connections still open to the daemon and may open a new
connection after disconnecting.

The 
.I mbox 
should be for the connection you wish to disconnect from.
.SH "RETURN VALUES"
Returns 0 on success or 
.B ILLEGAL_SESSION
when the session 
.I mbox
given is not a valid connection.
.SH BUGS
None.
.SH AUTHOR
Yair Amir <yairamir@cnds.jhu.edu>
.br
Jonathan Stanton <jonathan@cnds.jhu.edu>
.br
Commedia Project <commedia@cnds.jhu.edu>
.SH "SEE ALSO"
.BR libsp (3)