File:  [Public] / libwww / Library / src / HTSocket.html
Revision 2.27: download - view: text, annotated - select for diffs
Fri Nov 11 14:03:16 2005 UTC (18 years, 6 months ago) by vbancrof
Branches: MAIN
CVS tags: candidate-5-4-1, HEAD
add extern c and HTFile_dirent_buf_size

<HTML>
<HEAD>
  <TITLE>W3C Sample Code 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/Library/"> W3C Sample Code
Library</A>.
<PRE>
#ifndef HTSOCKET_H
#define HTSOCKET_H

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

#ifdef __cplusplus
extern "C" { 
#endif 

extern HTProtCallback HTLoadSocket;
</PRE>
<PRE>
</PRE>
<PRE>
#ifdef __cplusplus
}
#endif

#endif  /* HTSOCKET_H */
</PRE>
<P>
  <HR>
<ADDRESS>
  @(#) $Id: HTSocket.html,v 2.27 2005/11/11 14:03:16 vbancrof Exp $
</ADDRESS>
</BODY></HTML>

Webmaster