File:  [Public] / libwww / Library / src / HTSocket.html
Revision 2.23: download - view: text, annotated - select for diffs
Mon May 20 15:07:13 1996 UTC (28 years ago) by frystyk
Branches: MAIN
CVS tags: Release-5-0a, Release-5-0, Release-4-1b5, Release-4-1b4, Release-4-1b3, Release-4-1b1, PIPELINE1, HEAD
close to 4.1 pre1

<HTML>
<HEAD>
  <TITLE>W3C Reference Library libwww Identity Socket Read</TITLE>
</HEAD>
<BODY>
<H1>
  Identity Socket Read Method
</H1>
<PRE>
/*
**	(c) COPYRIGHT MIT 1995.
**	Please first read the full copyright statement in the file COPYRIGH.
*/
</PRE>
<P>
This function is an "<I>identity</I>" application protocol in that it reads
data from the transport and passes it down stream without doing anything
with it. It simply reads data and is a wrapper around a registered
<A HREF="HTTrans.html">transport mechanism</A> for reading from a socket.
It provides a callback function for the <A HREF="HTEvent.html">event loop</A>
so that a socket can be loaded using non-blocking I/O. The function requires
an <B>open</B> socket. It will typically be used in server applications or
in a client application that can read directly from <CODE>stdin</CODE>.
<P>
This module is implemented by <A HREF="HTSocket.c">HTSocket.c</A>, and it
is a part of the <A HREF="http://www.w3.org/pub/WWW/Library/"> W3C Reference
Library</A>.
<PRE>
#ifndef HTSOCKET_H
#define HTSOCKET_H

#include <A HREF="HTReq.html">"HTEvent.h"</A>

extern HTEventCallback HTLoadSocket;
</PRE>
<PRE>
</PRE>
<PRE>#endif
</PRE>
<P>
  <HR>
<ADDRESS>
  @(#) $Id: HTSocket.html,v 2.23 1996/05/20 15:07:13 frystyk Exp $
</ADDRESS>
</BODY></HTML>

Webmaster