ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahz_5.4.0.1/clntrun.htm

41 lines
1.2 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org">
<meta http-equiv="Content-Type" content=
"text/html; charset=utf-8">
<title>Example: Creating and running the client program</title>
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</HEAD>
<body bgcolor="#FFFFFF">
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h2>Example: Creating and running the client program</h2>
<strong>Creating the client program</strong> The following example
shows how to create the client program on AIX using xlc. The
example assumes that the source for the client program is in file
qshc.c in the current working directory. The client program has
been compiled and tested on AIX 4.1.5 using xlc and Linux 2.0.29
using gcc 2.7.2.1.
<pre>
xlc -o qshc qshc.c
</pre>
<strong>Running the client program</strong> The following example
shows how to run the client program and connect to a server running
on system myas400. Before running the command, there must be an
entry in your ~/.netrc file for the specified system and the server
must be started and listening on TCP/IP port 6042.
<pre>
qshc myas400
</pre>
</body>
</html>