ESetGeneral
ESetGeneral Switch The .ENET Driver to general- transmission
mode.
#include <ENET.h> AppleTalk Manager
OSErr ESetGeneral( thePBptr, async);
EParamBlkPtr thePBptr; address of an EParamBlock structure
Boolean async; 0=await completion; 1=immediate return
returns Error Code; 0=no error
ESetGeneral switches The .ENET Driver from limited- transmission
mode to general-transmission mode.
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 ENetSetGeneral
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
memFullErr (-108) Insufficient memory in heap

Notes: The ESetGeneral function switches The .ENET Driver from
limited-transmission mode to general-transmission mode. In
limited-transmission mode, The .ENET Driver allocates a write-data
buffer of 768 bytes. This buffer size is more than sufficient to hold an
EtherTalk data packet, which can be no larger than 621 bytes. In
general-transmission mode, The .ENET Driver can transmit an Ethernet
data packet of up to 1514 bytes.
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
ENetSetGeneral for this function.
There is no command to switch The .ENET Driver from
general-transmission mode to limited-transmission mode. To switch back
to limited-transmission mode, you have to reset the driver by re starting
the computer.