Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

netio_private.h File Reference

private functions to help with communication protocol IO More...

#include "errorcodes.h"

Go to the source code of this file.

Functions

errorcode checkMsgLen (char *msg, int msg_len)
 checks that an message is as long as the length field says it is


Detailed Description

private functions to help with communication protocol IO

Author:
Daniel Ferullo (ferullo@cmu.edu)

Definition in file netio_private.h.


Function Documentation

errorcode checkMsgLen char *  msg,
int  msg_len
 

checks that an message is as long as the length field says it is

Parameters:
msg a pointer to the message
msg_len the length of msg (including header)
Returns:
OK if the message is ok, NOT_OK if it is to small, other neg value otherwise

Definition at line 125 of file netio.c.

References CHECK_NOT_NEG, COMM_LENGTH_LEN, COMM_TYPE_LEN, ERROR_NEG_ARG_2, ERROR_NULL_ARG_1, and errorcode.

Referenced by readMsg().


Generated on Wed Mar 30 23:20:48 2005 for NATBLASTER by  doxygen 1.3.9.1