Table of Contents Previous page Next page Index

ModelSim

Model Technology Inc.


mti_AddOutputReadyCB()

Adds or removes a file/pipe(/socket) output ready callback.

Syntax

mti_AddOutputReadyCB( file_desc, func, param ) 

Returns

Nothing

Arguments

Name
Type
Description
file_desc
int
On UNIX, a file, pipe, or socket descriptor; on Windows, a pipe descriptor
func
mtiVoidFuncPtrT
A pointer to a function to be called whenever the file descriptor is available for writing
param
void *
A parameter to be passed to the function; OPTIONAL - can be NULL

Description

mti_AddOutputReadyCB() puts a watch on the specified file descriptor. Whenever the file descriptor is available for writing, the specified function is called along with its parameter.

In a UNIX environment, mti_AddOutputReadyCB() can be used with files, pipes, and sockets. In a Windows environment, it can be used only with pipes. (See mti_AddSocketOutputReadyCB().)

To remove a previously added callback, call mti_AddOutputReadyCB() with the same file descriptor but with a NULL function pointer.

Related functions

mti_AddInputReadyCB()

mti_AddSocketInputReadyCB()

mti_AddSocketOutputReadyCB()



Model Technology Inc.
Voice: (503) 641-1340
Fax: (503)526-5410
http://www.model.com
sales@model.com
TOC PREV NEXT INDEX

ModelSim