76 lines
5.3 KiB
HTML
76 lines
5.3 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow" />
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<meta name="DC.Type" content="reference" />
|
|
<meta name="DC.Title" content="Socket support" />
|
|
<meta name="abstract" content="If your application is using the root (/), QOpenSys, or user-defined file systems, you can take advantage of the integrated file system local socket support. A local socket object (object type *SOCKET) allows two jobs running on the same system to establish a communications connection with each other." />
|
|
<meta name="description" content="If your application is using the root (/), QOpenSys, or user-defined file systems, you can take advantage of the integrated file system local socket support. A local socket object (object type *SOCKET) allows two jobs running on the same system to establish a communications connection with each other." />
|
|
<meta name="DC.subject" content="socket" />
|
|
<meta name="keywords" content="socket" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaaxpgmifs.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../rzab6/rzab6soxoverview.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../apis/write.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../apis/read.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../apis/close.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../apis/unlink.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/rmvlnk.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1999, 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1999, 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzaaxsock" />
|
|
<meta name="DC.Language" content="en-us" />
|
|
<!-- 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. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>Socket support</title>
|
|
</head>
|
|
<body id="rzaaxsock"><a name="rzaaxsock"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Socket support</h1>
|
|
<div><p>If your application is using the <span class="q">"root"</span> (/), QOpenSys, or
|
|
user-defined file systems, you can take advantage of the integrated file system <dfn class="term">local socket</dfn> support. A local socket object
|
|
(object type *SOCKET) allows two jobs running on the same system to establish
|
|
a communications connection with each other.</p>
|
|
<div class="section"><p>One of the jobs establishes a connection point by using the <span class="apiname">bind()</span> C
|
|
language function to create a local socket object. The other job specifies
|
|
the name of the local socket object on the <span class="apiname">connect()</span>, <span class="apiname">sendto()</span>,
|
|
or <span class="apiname">sendmsg()</span> function. </p>
|
|
</div>
|
|
<div class="section"><p>After the connection is established, the two jobs can send data
|
|
to and receive data from each other using the integrated file system functions
|
|
such as <span class="apiname">write()</span> and <span class="apiname">read()</span>. None of
|
|
the data that is transferred actually goes through the socket object. The
|
|
socket object is just a meeting point where the two jobs can find each other.</p>
|
|
</div>
|
|
<div class="section"><p>When the two jobs are finished communicating, each job uses the <span class="apiname">close()</span> function
|
|
to close the socket connection. The local socket object remains in the system
|
|
until it is removed using the <span class="apiname">unlink()</span> function or the <span class="cmdname">Remove
|
|
Link (RMVLNK)</span> command.</p>
|
|
</div>
|
|
<div class="section"><p>A local socket object cannot be saved.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaaxpgmifs.htm" title="The addition of the integrated file system to the iSeries server server in V3R1M0 did not affect existing iSeries server applications. The programming languages, utilities, and system support (such as data description specifications) operate in the same way as they did before the addition of the integrated file system.">Programming support</a></div>
|
|
</div>
|
|
<div class="relinfo"><strong>Related information</strong><br />
|
|
<div><a href="../rzab6/rzab6soxoverview.htm">Sockets programming</a></div>
|
|
<div><a href="../apis/write.htm">write() API</a></div>
|
|
<div><a href="../apis/read.htm">read() API</a></div>
|
|
<div><a href="../apis/close.htm">close() API</a></div>
|
|
<div><a href="../apis/unlink.htm">unlink() API</a></div>
|
|
<div><a href="../cl/rmvlnk.htm">Remove link (RMVLNK) command</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |