EGetInfo
EGetInfo Return information about The .ENET Driver
#include <ENET.h> AppleTalk Manager
OSErr EGetInfo( thePBptr, async);
EParamBlkPtr thePBptr; address of an EParamBlock structure
Boolean async; 0=await completion; 1=immediate return
returns Error Code; 0=no error
EGetInfo returns information about The .ENET Driver.
thePBptr is a pointer to an EParamBlock structure. The relevant fields are as
follows:
Out-InName Type Size Offset Description
¨ ioResult short 2 16 Result code
Æ csCode short 2 26 Always ENetGetInfo
Æ ePointer long 4 30 Pointer to data buffer
Æ eBuffSize short 2 34 Size of buffer
async is a Boolean value. Use FALSE for normal ( synchronous) operation
or TRUE to function asynchronously. See Async I/O.
Returns: an operating system Error Code. It will be one of:
noErr (0) No error

Notes: Before calling this function, you must allocate a data buffer of at least 18
bytes. Put a pointer to the buffer in the ePointer parameter and the size of
the buffer in the eBuffSize parameter.
The EGetInfo function places the following information in the data buffer:
Bytes Information
1-6 Ethernet address of the node on which the driver is installed
7-10 Number of times the receive queue has overflowed
11-14 Number of data transmission operations that have timed out
15-18 Number of packets received that contain an incorrect address
An incorrect Ethernet address is one that is neither the broadcast address,
a multicast address for which this node is registered, nor the node's data
link address. A node could receive an incorrect Ethernet address due to a
hardware or software error.
The ioResult parameter returns the result of the function. If you call the
function asynchronously, the function sets this field to 1 as soon as it
begins execution, and it changes the field to the actual result code when it
completes execution. The csCode parameter is the routine selector,
automatically set by the high-level language interface. It is always
ENetGetInfo for this function.