socket_fd

Returns the socket descriptor associated with a Socket Device Channel for direct use with the DEC C RTL.

Format

#include  <socket.h>

int socket_fd  (int channel);

Arguments

channel
A valid Socket Device Channel.

Description

The socket_fd routine associates a valid socket channel with a DEC C RTL file descriptor, and returns the file descriptor. The file descriptor can then be used with one of the DEC C routines that take a file descriptor or socket descriptor as an input parameter.

Return Values
The socket descriptor. 
-1  Indicates an error; the socket descriptor cannot be allocated. 


Previous Page | Next Page | Table of Contents | Index