Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bd5c3d824c3db63ffd9226c15941e6ad > files > 1510

mozart-1.4.0-1mdv2010.0.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>5 Sockets</TITLE><LINK href="ozdoc.css" rel="stylesheet" type="text/css"></HEAD><BODY><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node8.html#chapter.text">&lt;&lt; Prev</A></TD><TD><A href="index.html">- Up -</A></TD><TD><A href="node16.html#chapter.pipe">Next &gt;&gt;</A></TD></TR></TABLE><DIV id="chapter.sockets"><H1><A name="chapter.sockets">5 Sockets</A></H1><P>A frequent need in programming open applications is to connect different operating system processes such that they are able to exchange data. A tool for solving this problem are sockets. This chapter explains how to use sockets from Mozart. </P><P>Before starting to describe how to use them, we explain some basic concepts. The explanation is short; for more detailed information see for example <A href="bib.html#stevens.90">[Ste90]</A>. </P><HR><UL class="toc"><LI><A href="node11.html#section.sockets.nutshell">5.1 Sockets in a Nutshell</A><UL class="toc"><LI><A href="node11.html#section.domain">5.1.1 Domain</A></LI><LI><A href="node11.html#section.type">5.1.2 Type</A></LI><LI><A href="node11.html#label85">5.1.3 Protocol</A></LI></UL></LI></UL><UL class="toc"><LI><A href="node12.html#section.sockets.stream">5.2 Stream Sockets</A><UL class="toc"><LI><A href="node12.html#label89">5.2.1 Initiating a Connection</A></LI><LI><A href="node12.html#label107">5.2.2 Convenient Connection Establishment</A></LI><LI><A href="node12.html#label112">5.2.3 Exchanging Data</A></LI><LI><A href="node12.html#label117">5.2.4 Concurrency Issues</A></LI><LI><A href="node12.html#label118">5.2.5 Disconnecting</A></LI><LI><A href="node12.html#label127">5.2.6 Exceptions</A></LI></UL></LI></UL><UL class="toc"><LI><A href="node13.html#section.sockets.accept">5.3 Accepting Multiple Connections</A></LI></UL><UL class="toc"><LI><A href="node14.html#section.sockets.datagram">5.4 Datagram Sockets</A><UL class="toc"><LI><A href="node14.html#label128">5.4.1 Initialization</A></LI><LI><A href="node14.html#label133">5.4.2 Exchanging Data</A></LI><LI><A href="node14.html#label138">5.4.3 Peer</A></LI></UL></LI></UL><UL class="toc"><LI><A href="node15.html#section.sockets.finger">5.5 Example: Are We Working Right Now?</A></LI></UL></DIV><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node8.html#chapter.text">&lt;&lt; Prev</A></TD><TD><A href="index.html">- Up -</A></TD><TD><A href="node16.html#chapter.pipe">Next &gt;&gt;</A></TD></TR></TABLE><HR><ADDRESS><A href="http://www.ps.uni-sb.de/~schulte/">Christian&nbsp;Schulte</A><BR><SPAN class="version">Version 1.4.0 (20090610)</SPAN></ADDRESS></BODY></HTML>