Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/net/pprerror.cxx File Reference

#include <pandabase.h>
#include "pprerror.h"
#include "config_net.h"
#include <prerror.h>
#include <prprf.h>
#include <prmem.h>
#include <stdarg.h>
#include <stdio.h>

Go to the source code of this file.

Functions

const char * get_error_message (PRErrorCode code)
 A local function to this module, it returns a sensibly formatted string to describe the given NSPR error code.

void pprerror (const char *format,...)
 A handy function like perror().


Detailed Description

Definition in file pprerror.cxx.


Function Documentation

const char * get_error_message PRErrorCode  code  )  [static]
 

A local function to this module, it returns a sensibly formatted string to describe the given NSPR error code.

The strings in this function were extracted from the NSPR documentation web site.

Definition at line 92 of file pprerror.cxx.

void pprerror const char *  format,
... 
 

A handy function like perror().

It outputs the printf-style format string and its arguments, followed by a colon and the NSPR-given description of its current error state.

Definition at line 49 of file pprerror.cxx.

Referenced by NetAddress::clear(), ConnectionReader::process_incoming_data(), and ConnectionListener::receive_datagram().


Generated on Fri May 2 00:45:55 2003 for Panda by doxygen1.3