DMNETDATAFD(3dm) DMNETDATAFD(3dm)
dmNetDataFd - return FD associated with a DMNetConnection
#include <dmedia/dmnet.h>
int dmNetDataFd(DMNetConnection);
dmNetDataFd returns a file descriptor associated with the specified
DMNetConnection. This descriptor is suitable for use by select() to
signify the availability of incoming data.
dmNetDataFd returns DM_FAILURE if the DMNetConnection was not valid.
Depending on the underlying transport mechanism, the file descriptor
returned by dmNetDataFd may indicate as ready to read (via select) when a
complete DMbuffer is ready, or merely when the first part of the data
that makes up a DMbuffer has arrived on the network connection. Thus,
even though the DMNetConnection is ready, dmNetRecv may not return data
immediately when it is called.
The dmNetControFd function is now deprecated.
dmNetOpen(3dm), dmNetListen(3dm), dmNetConnect(3dm), dmNetRecv(3dm),
select(2)
DMNETDATAFD(3dm) DMNETDATAFD(3dm)
dmNetDataFd - return FD associated with a DMNetConnection
#include <dmedia/dmnet.h>
int dmNetDataFd(DMNetConnection);
dmNetDataFd returns a file descriptor associated with the specified
DMNetConnection. This descriptor is suitable for use by select() to
signify the availability of incoming data.
dmNetDataFd returns DM_FAILURE if the DMNetConnection was not valid.
Depending on the underlying transport mechanism, the file descriptor
returned by dmNetDataFd may indicate as ready to read (via select) when a
complete DMbuffer is ready, or merely when the first part of the data
that makes up a DMbuffer has arrived on the network connection. Thus,
even though the DMNetConnection is ready, dmNetRecv may not return data
immediately when it is called.
The dmNetControFd function is now deprecated.
dmNetOpen(3dm), dmNetListen(3dm), dmNetConnect(3dm), dmNetRecv(3dm),
select(2)
PPPPaaaaggggeeee 1111 [ Back ]
|