ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzab6_5.4.0.1/example.htm

86 lines
6.2 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?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="Examples: Socket application designs" />
<meta name="abstract" content="These examples provide many sample programs that illustrate the more advanced socket concepts. You can use these sample programs to create your own applications that complete a similar task." />
<meta name="description" content="These examples provide many sample programs that illustrate the more advanced socket concepts. You can use these sample programs to create your own applications that complete a similar task." />
<meta name="DC.Relation" scheme="URI" content="rzab6soxoverview.htm" />
<meta name="DC.Relation" scheme="URI" content="xcodesigns.htm" />
<meta name="DC.Relation" scheme="URI" content="xasynchi0.htm" />
<meta name="DC.Relation" scheme="URI" content="x1ssl.htm" />
<meta name="DC.Relation" scheme="URI" content="xthread.htm" />
<meta name="DC.Relation" scheme="URI" content="xnonblock.htm" />
<meta name="DC.Relation" scheme="URI" content="poll.htm" />
<meta name="DC.Relation" scheme="URI" content="xsignals.htm" />
<meta name="DC.Relation" scheme="URI" content="xmulticast.htm" />
<meta name="DC.Relation" scheme="URI" content="xdns.htm" />
<meta name="DC.Relation" scheme="URI" content="xsendfile.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2001, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2001, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="example" />
<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>Examples: Socket application designs</title>
</head>
<body id="example"><a name="example"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Examples: Socket application designs</h1>
<div><p>These examples provide many sample programs that illustrate the
more advanced socket concepts. You can use these sample programs to create
your own applications that complete a similar task.</p>
<div class="section"><p>With these examples, there are graphics and a listing of calls
that illustrate the flow of events in each of these applications. You can
use the Xsockets tool interactively try some of these APIS in these programs,
or you can make specific changes for your particular environment.</p>
</div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="xcodesigns.htm">Examples: Connection-oriented designs</a></strong><br />
There are a number of ways that you can design a connection-oriented
socket server on the iSeries™. These example programs can be used to create
your own connection-oriented designs.</li>
<li class="ulchildlink"><strong><a href="xasynchi0.htm">Example: Use asynchronous I/O</a></strong><br />
An application creates an I/O completion port using the <span class="apiname">QsoCreateIOCompletionPort()</span> API.</li>
<li class="ulchildlink"><strong><a href="x1ssl.htm">Examples: Establish secure connections</a></strong><br />
You can create secure server and clients using either the Global Secure ToolKit (GSKit) APIs or the Secure Sockets Layer (SSL_) APIs.</li>
<li class="ulchildlink"><strong><a href="xthread.htm">Example: Use gethostbyaddr_r() for threadsafe network routines</a></strong><br />
Here is an example of a program that uses <span class="apiname">gethostbyaddr_r()</span>.</li>
<li class="ulchildlink"><strong><a href="xnonblock.htm">Example: Nonblocking I/O and select()</a></strong><br />
This sample program uses nonblocking and the <span class="apiname">select() </span>API.</li>
<li class="ulchildlink"><strong><a href="poll.htm">Use poll() instead of select()</a></strong><br />
The <span class="apiname">poll()</span> API is part of the Single Unix Specification
and the UNIX<sup>®</sup> 95/98
standard. The <span class="apiname">poll()</span> API performs the same function as
the existing <span class="apiname">select()</span> API. The only difference between
these two APIs is the interface that is provided to the caller.</li>
<li class="ulchildlink"><strong><a href="xsignals.htm">Example: Use signals with blocking socket APIs</a></strong><br />
Signals allow you to be notified when a process or application becomes blocked.</li>
<li class="ulchildlink"><strong><a href="xmulticast.htm">Examples: Use multicasting with AF_INET</a></strong><br />
IP multicasting provides the capability for an application to send a single IP datagram that a group of hosts in a network can receive.</li>
<li class="ulchildlink"><strong><a href="xdns.htm">Example: Update and query DNS</a></strong><br />
This example shows how to query and update Domain Name System (DNS) records.</li>
<li class="ulchildlink"><strong><a href="xsendfile.htm">Examples: Transfer file data using send_file() and accept_and_recv() APIs</a></strong><br />
These examples enable a server to communicate with a client by
using the <span class="apiname">send_file()</span> and <span class="apiname">accept_and_recv()</span> APIs.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzab6soxoverview.htm" title="A socket is a communications connection point (endpoint) that you can name and address in a network.">Socket programming</a></div>
</div>
</div>
</body>
</html>