Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

Network Stream Device Driver
[Network device drivers.]

Virtual TCP socket stream device. More...

Functions

NUTDEVICENutSoStreamCreate (TCPSOCKET *sock)
 Create a virtual stream device from a specified socket.

int NutSoStreamDestroy (NUTDEVICE *dev)
 Destroy a previously created stream device.


Detailed Description

Virtual TCP socket stream device.

These function are deprecated for new applications. Use C stdio.


Function Documentation

NUTDEVICE* NutSoStreamCreate TCPSOCKET   sock
 

Create a virtual stream device from a specified socket.

Parameters:
sock Specifies the socket descriptor, which must have been retrieved by calling NutTcpCreateSocket(). In addition a connection must already have been established by calling NutTcpConnect() or NutTcpAccept().

int NutSoStreamDestroy NUTDEVICE   dev
 

Destroy a previously created stream device.

This will flush the stream output buffer and release any occupied memory. To terminate the connection and close the socket, the application must call NutTcpCloseSocket().

Deprecated:
Use _close() or fclose() in new programs.
Parameters:
dev Identifies the stream device, which has been created previously by calling NutSoStreamCreate().


© 2000-2003 by egnite Software GmbH - visit http://www.ethernut.de/