mirror of
https://github.com/thestk/stk
synced 2026-01-13 13:01:52 +00:00
Release 4.2.0 tarball
This commit is contained in:
committed by
Stephen Sinclair
parent
fe20fe92a2
commit
de344668dd
@@ -9,17 +9,23 @@
|
||||
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
||||
<HR>
|
||||
<!-- Generated by Doxygen 1.3.4 -->
|
||||
<h1>Socket Class Reference</h1>STK TCP socket client/server class.
|
||||
<a href="#_details">More...</a>
|
||||
<p>
|
||||
<code>#include <<a class="el" href="Socket_8h-source.html">Socket.h</a>></code>
|
||||
<h1>Socket Class Reference</h1><code>#include <<a class="el" href="Socket_8h-source.html">Socket.h</a>></code>
|
||||
<p>
|
||||
<p>Inheritance diagram for Socket:
|
||||
<p><center><img src="classSocket.png" usemap="#Socket_map" border="0" alt=""></center>
|
||||
<map name="Socket_map">
|
||||
<area href="classStk.html" alt="Stk" shape="rect" coords="0,0,50,24">
|
||||
</map>
|
||||
<a href="classSocket-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
|
||||
<a href="classSocket-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
|
||||
STK TCP socket client/server class.
|
||||
<p>
|
||||
This class provides a uniform cross-platform TCP socket client or socket server interface. Methods are provided for reading or writing data buffers to/from connections. This class also provides a number of static functions for use with external socket descriptors.<p>
|
||||
The user is responsible for checking the values returned by the read/write methods. Values less than or equal to zero indicate a closed or lost connection or the occurence of an error.<p>
|
||||
by Perry R. Cook and Gary P. Scavone, 1995 - 2004.
|
||||
<p>
|
||||
|
||||
<p>
|
||||
Definition at line <a class="el" href="Socket_8h-source.html#l00026">26</a> of file <a class="el" href="Socket_8h-source.html">Socket.h</a>.<table border=0 cellpadding=0 cellspacing=0>
|
||||
<tr><td></td></tr>
|
||||
<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="classSocket.html#a0">Socket</a> (int port=2006)</td></tr>
|
||||
@@ -39,8 +45,8 @@
|
||||
void </td><td class="memItemRight" valign=bottom><a class="el" href="classSocket.html#a4">close</a> (void)</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Close this socket. <br><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a5" doxytag="Socket::socket" ></a>
|
||||
int </td><td class="memItemRight" valign=bottom><a class="el" href="classSocket.html#a5">socket</a> (void) const </td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a5" doxytag="Socket::id" ></a>
|
||||
int </td><td class="memItemRight" valign=bottom><a class="el" href="classSocket.html#a5">id</a> (void) const </td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the server/client socket descriptor. <br><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a6" doxytag="Socket::port" ></a>
|
||||
@@ -70,7 +76,7 @@ void </td><td class="memItemRight" valign=bottom><a class="el" href="classS
|
||||
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="e2" doxytag="Socket::isValid" ></a>
|
||||
bool </td><td class="memItemRight" valign=bottom><a class="el" href="classSocket.html#e2">isValid</a> (int socket)</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns TRUE is the socket descriptor is valid. <br><br></td></tr>
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the socket descriptor is valid. <br><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="e3" doxytag="Socket::writeBuffer" ></a>
|
||||
int </td><td class="memItemRight" valign=bottom><a class="el" href="classSocket.html#e3">writeBuffer</a> (int socket, const void *buffer, long bufferSize, int flags)</td></tr>
|
||||
|
||||
@@ -80,16 +86,7 @@ int </td><td class="memItemRight" valign=bottom><a class="el" href="classSo
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Read a buffer via the specified socket. Returns the number of bytes read or -1 if an error occurs. <br><br></td></tr>
|
||||
</table>
|
||||
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
||||
STK TCP socket client/server class.
|
||||
<p>
|
||||
This class provides a uniform cross-platform TCP socket client or socket server interface. Methods are provided for reading or writing data buffers to/from connections. This class also provides a number of static functions for use with external socket descriptors.<p>
|
||||
The user is responsible for checking the values returned by the read/write methods. Values less than or equal to zero indicate a closed or lost connection or the occurence of an error.<p>
|
||||
by Perry R. Cook and Gary P. Scavone, 1995 - 2002.
|
||||
<p>
|
||||
|
||||
<p>
|
||||
Definition at line <a class="el" href="Socket_8h-source.html#l00026">26</a> of file <a class="el" href="Socket_8h-source.html">Socket.h</a>.<hr><h2>Constructor & Destructor Documentation</h2>
|
||||
<hr><h2>Constructor & Destructor Documentation</h2>
|
||||
<a class="anchor" name="a0" doxytag="Socket::Socket" ></a><p>
|
||||
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
||||
<tr>
|
||||
@@ -239,7 +236,7 @@ If no connection requests are pending and the socket has not been set non-blocki
|
||||
<HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td><A HREF="http://ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user