Annotation of libwww/Library/src/HTSocket.html, revision 2.26
2.1 frystyk 1: <HTML>
2: <HEAD>
2.25 frystyk 3: <TITLE>W3C Sample Code Library libwww Identity Socket Read</TITLE>
2.1 frystyk 4: </HEAD>
5: <BODY>
2.21 eric 6: <H1>
2.23 frystyk 7: Identity Socket Read Method
2.21 eric 8: </H1>
2.1 frystyk 9: <PRE>
10: /*
11: ** (c) COPYRIGHT MIT 1995.
12: ** Please first read the full copyright statement in the file COPYRIGH.
13: */
14: </PRE>
2.21 eric 15: <P>
2.23 frystyk 16: This function is an "<I>identity</I>" application protocol in that it reads
17: data from the transport and passes it down stream without doing anything
18: with it. It simply reads data and is a wrapper around a registered
19: <A HREF="HTTrans.html">transport mechanism</A> for reading from a socket.
20: It provides a callback function for the <A HREF="HTEvent.html">event loop</A>
21: so that a socket can be loaded using non-blocking I/O. The function requires
22: an <B>open</B> socket. It will typically be used in server applications or
23: in a client application that can read directly from <CODE>stdin</CODE>.
2.21 eric 24: <P>
25: This module is implemented by <A HREF="HTSocket.c">HTSocket.c</A>, and it
2.26 ! frystyk 26: is a part of the <A HREF="http://www.w3.org/Library/"> W3C Sample Code
2.21 eric 27: Library</A>.
2.1 frystyk 28: <PRE>
29: #ifndef HTSOCKET_H
30: #define HTSOCKET_H
31:
2.24 frystyk 32: #include <A HREF="HTProt.html">"HTProt.h"</A>
2.23 frystyk 33:
2.24 frystyk 34: extern HTProtCallback HTLoadSocket;
2.1 frystyk 35: </PRE>
2.2 frystyk 36: <PRE>
2.9 frystyk 37: </PRE>
2.23 frystyk 38: <PRE>#endif
2.1 frystyk 39: </PRE>
2.21 eric 40: <P>
41: <HR>
2.20 frystyk 42: <ADDRESS>
2.26 ! frystyk 43: @(#) $Id: HTSocket.html,v 2.25 1997/02/16 18:42:59 frystyk Exp $
2.20 frystyk 44: </ADDRESS>
2.21 eric 45: </BODY></HTML>
Webmaster