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

XgSoStream


Functions

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

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


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().

Parameters:
dev  Identifies the stream device, which has been created previously by calling NutSoStreamCreate().


Generated on Thu Jan 30 22:30:59 2003 for EduNet by doxygen1.2.18