[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Communications, Volume 2

datamsg Utility

Purpose

Tests whether message is a data message.

Syntax


#define datamsg( type) ((type) == M_DATA | | (type) == M_PROTO | | (type) ==
M_PCPROTO | | (type) == M_DELAY)

Description

The datamsg utility determines if a message is a data-type message. It returns a value of True if mp->b_datap->db_type (where mp is declared as mblk_t *mp) is a data-type message. The possible data types are M_DATA, M_PROTO, M_PCPROTO, and M_DELAY.

This utility is part of STREAMS Kernel Extensions.

Parameters

type Specifies acceptable data types.

Return Values

The datamsg utility returns a value of True if the message is a data-type message. Otherwise, it returns a value of False.

Related Information

List of Streams Programming References, Understanding STREAMS Messages in AIX 5L Version 5.2 Communications Programming Concepts.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]