214 lines
4.9 KiB
HTML
214 lines
4.9 KiB
HTML
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
<meta name="Copyright" content="Copyright (c) 2006 by IBM Corporation">
|
||
|
<title>qtoq_close()--Close QoS Sockets Connection API</title>
|
||
|
<!-- Begin Header Records -->
|
||
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
||
|
<!-- US Government Users Restricted Rights -->
|
||
|
<!-- Use, duplication or disclosure restricted by -->
|
||
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
||
|
<!-- Created by John Hall and Dale LeFevre for V5R2 -->
|
||
|
<!-- File tagging cleanup completed Mar 2002 by v2cdijab -->
|
||
|
<!-- Change History: -->
|
||
|
<!-- YYMMDD USERID Change description -->
|
||
|
<!-- End Header Records -->
|
||
|
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
<a name="Top_Of_Page"></a>
|
||
|
<!-- Java sync-link -->
|
||
|
<script type="text/javascript" language="Javascript" src="../rzahg/synch.js">
|
||
|
</script>
|
||
|
|
||
|
<h2>qtoq_close()--Close QoS Sockets Connection API</h2>
|
||
|
|
||
|
<div class="box" style="width: 80%;">
|
||
|
<br>
|
||
|
Syntax<br>
|
||
|
|
||
|
|
||
|
<pre>
|
||
|
#include <qtoqsapi.h>
|
||
|
|
||
|
int qtoq_close(
|
||
|
int socket_descriptor,
|
||
|
int *qos_descriptor,
|
||
|
unsigned int *qos_session,
|
||
|
)
|
||
|
|
||
|
</pre>
|
||
|
|
||
|
Service Program Name: QSYS/QTOQSAPI<br>
|
||
|
<!-- iddvc RMBR -->
|
||
|
<br>
|
||
|
Default Public Authority: *EXCLUDE<br>
|
||
|
<!-- iddvc RMBR -->
|
||
|
<br>
|
||
|
Threadsafe: Yes<br>
|
||
|
<!-- iddvc RMBR -->
|
||
|
<br>
|
||
|
</div>
|
||
|
|
||
|
<p><strong>qtoq_close()</strong> is called to close the socket and QoS session
|
||
|
that was created using the other qtoq_ sockets-type APIs. It performs a
|
||
|
standard sockets close(); on the socket descriptor, close the QoS session for
|
||
|
this connection and inform the QoS server that the connection should be closed
|
||
|
and the rule unloaded.</p>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
|
||
|
<h3>Parameters</h3>
|
||
|
|
||
|
<dl>
|
||
|
<dt><strong><em>socket_descriptor</em></strong></dt>
|
||
|
|
||
|
<dd>(Input) Required
|
||
|
|
||
|
<p>The socket descriptor that was created to perform the TCP/IP communications
|
||
|
for this connection.</p>
|
||
|
</dd>
|
||
|
|
||
|
<dt><strong><em>qos_descriptor</em></strong></dt>
|
||
|
|
||
|
<dd>(Input) Optional
|
||
|
|
||
|
<p>Pointer to an integer for the value of the descriptor that the application
|
||
|
used to wait on QoS events.</p>
|
||
|
</dd>
|
||
|
|
||
|
<dt><strong><em>qos_session</em></strong></dt>
|
||
|
|
||
|
<dd>(Input) Required
|
||
|
|
||
|
<p>Pointer to an integer containing the QoS session ID that was returned when
|
||
|
the QoS connection was established.</p>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
|
||
|
<h3>Authorities</h3>
|
||
|
|
||
|
<p>None.</p>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
|
||
|
<h3>Return Values</h3>
|
||
|
|
||
|
<table cellpadding="5">
|
||
|
<!-- cols="5 95" -->
|
||
|
<tr>
|
||
|
<td align="left" valign="top"><em>0</em></td>
|
||
|
<td align="left" valign="top">if successful.</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td align="left" valign="top"><em>-1</em></td>
|
||
|
<td align="left" valign="top">if function failed. Errno indicates error
|
||
|
reason.</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
|
||
|
<h3>Error Conditions</h3>
|
||
|
|
||
|
<p>When this function call fails, the errno value is set to one of the
|
||
|
following:</p>
|
||
|
|
||
|
<dl>
|
||
|
<dt><em>[EBADF]</em></dt>
|
||
|
|
||
|
<dd><p>Descriptor not valid.</p>
|
||
|
</dd>
|
||
|
|
||
|
<dt><em>[EIO]</em></dt>
|
||
|
|
||
|
<dd><p>Input/output error.</p>
|
||
|
</dd>
|
||
|
|
||
|
<dt><em>[ENOBUFS]</em></dt>
|
||
|
|
||
|
<dd><p>There is not enough buffer space for the requested operation.</p>
|
||
|
</dd>
|
||
|
|
||
|
<dt><em>[EUNKNOWN]</em></dt>
|
||
|
|
||
|
<dd><p>Unknown system state.</p></dd>
|
||
|
</dl>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
|
||
|
<h3>Error Messages</h3>
|
||
|
|
||
|
<table width="100%" cellpadding="5">
|
||
|
<!-- cols="15 85" -->
|
||
|
<tr>
|
||
|
<th align="left" valign="top" nowrap>Message ID</th>
|
||
|
<th align="left" valign="top">Error Message Text</th>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td align="left" valign="top">CPE3418 E</td>
|
||
|
<td align="left" valign="top">Possible APAR condition or hardware failure.</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td align="left" valign="top">CPF9872 E</td>
|
||
|
<td align="left" valign="top">Program or service program &1 in library
|
||
|
&2 ended. Reason code &3.</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td align="left" valign="top">CPFA081 E</td>
|
||
|
<td align="left" valign="top">Unable to set return value or error code.</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<br>
|
||
|
<br>
|
||
|
|
||
|
|
||
|
<h3>Usage Notes</h3>
|
||
|
|
||
|
<ol>
|
||
|
<li>The qtoq_close() API must be used in place of the normal close() sockets
|
||
|
call in an application using the QTOQ APIs. If it is not used, the results are
|
||
|
unpredictable.</li>
|
||
|
</ol>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
|
||
|
<h3>Related Information</h3>
|
||
|
|
||
|
<p>For a description of the RSVP protocol, see RFC 2205 on the RFC Pages for <a
|
||
|
href="http://www.ietf.org/rfc.html">The Internet Engineering Task
|
||
|
Force</a>.<img src="www.gif" alt="Link outside Information Center"></p>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
|
||
|
<hr>
|
||
|
API introduced: V5R2
|
||
|
|
||
|
<hr>
|
||
|
<center>
|
||
|
<table cellpadding="2" cellspacing="2">
|
||
|
<tr align="center">
|
||
|
<td valign="middle" align="center"><a href="#Top_Of_Page">Top</a> | <a href=
|
||
|
"unix.htm">UNIX-Type APIs</a> | <a href="aplist.htm">APIs by category</a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</center>
|
||
|
</body>
|
||
|
</html>
|
||
|
|