IP_AddFDHandler

Cogent API and Utilities: Version 4.1
Prev |  | Next

# `IP_AddFDHandler`

`IP_AddFDHandler` -- tells `IP_Receive` to accept file input.

## Syntax

``int IP_AddFDHandler`(int fd);`

## Arguments

`fd`

  An open file descriptor.

## Returns

`-1` on failure and `errno` is set, or an arbitrary number other than `-1` on success.

## Description

This function tells `IP_Receive` that it should accept input from the given file descriptor, and return `IP_FD` whenever a read event occurs on that descriptor.

## See Also

Receiving Messages and Events, `IP_RemoveFDHandler`

Prev | Home | Next
Inter-Process Communication Functions | Up | `IP_AttachPhoton`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.