Nut/OS  5.0.5
API Reference
streamio.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <time.h>
#include <process.h>
#include <pro/uhttp/streamio.h>
Include dependency graph for streamio.c:

Data Structures

struct  _CLIENT_THREAD_PARAM

Typedefs

typedef struct _CLIENT_THREAD_PARAM CLIENT_THREAD_PARAM

Functions

int StreamInit (void)
 Initialize the stream.
void StreamClientThread (void *param)
int StreamClientAccept (HTTP_CLIENT_HANDLER handler, const char *params)
 Accept stream clients.
int StreamReadUntilChars (HTTP_STREAM *sp, const char *delim, const char *ignore, char *buf, int siz)
 Read data from a stream until any of the specified characters appears.
int StreamReadUntilString (HTTP_STREAM *sp, const char *delim, char *buf, int siz)
 Read data from a stream until a specified string appears.
int s_write (const void *buf, size_t size, size_t count, HTTP_STREAM *sp)
 Write data items to a stream.
int s_puts (const char *str, HTTP_STREAM *sp)
 Write a string to a stream.
int s_vputs (HTTP_STREAM *sp,...)
 Write a variable number of strings to a stream.
int s_printf (HTTP_STREAM *sp, const char *fmt,...)
 Print formatted data to a stream.
int s_flush (HTTP_STREAM *sp)
 Flush a stream.
const char * StreamInfo (HTTP_STREAM *sp, int item)

Typedef Documentation


Function Documentation

void StreamClientThread ( void *  param)

References _CLIENT_THREAD_PARAM::ctp_handler, _CLIENT_THREAD_PARAM::ctp_stream, free(), and _HTTP_STREAM::strm_csock.

Referenced by StreamClientAccept().

Here is the call graph for this function: