ftp.nice.ch/pub/next/developer/languages/c/gcc.2.7.2.2.I.b.tar.gz#/lib/gcc-lib/m68k-next-nextstep3/2.7.2.2.f.2/include/driverkit/IONetwork.h

This is IONetwork.h in view mode; [Download] [Up]

/*
 * Copyright (c) 1992 NeXT Computer, Inc.
 *
 * Network interface class.
 *
 * HISTORY
 *
 * 10 December 1992 David E. Bohman at NeXT
 *	Created.
 */

#ifdef	KERNEL

#import <objc/Object.h>
#import <bsd/net/netif.h>

@interface IONetwork:Object
{
@private
    netif_t	_netif;
    int		_IONetwork_reserved[4];
}

- initForNetworkDevice:device
		name:(const char *)name
		unit:(unsigned int)unit
		type:(const char *)type
		maxTransferUnit:(unsigned int)mtu
		flags:(unsigned int)flags;

- (int)handleInputPacket:(netbuf_t)pkt
		extra:(void *)extra;

- (unsigned)inputPackets;
- (void)incrementInputPackets;
- (void)incrementInputPacketsBy:(unsigned)increment;

- (unsigned)inputErrors;
- (void)incrementInputErrors;
- (void)incrementInputErrorsBy:(unsigned)increment;

- (unsigned)outputPackets;
- (void)incrementOutputPackets;
- (void)incrementOutputPacketsBy:(unsigned)increment;

- (unsigned)outputErrors;
- (void)incrementOutputErrors;
- (void)incrementOutputErrorsBy:(unsigned)increment;

- (unsigned)collisions;
- (void)incrementCollisions;
- (void)incrementCollisionsBy:(unsigned)increment;

@end

@protocol IONetworkDeviceMethods

- (int)finishInitialization;

- (int)outputPacket:(netbuf_t)pkt
	    address:(void *)addrs;

- (netbuf_t)allocateNetbuf;

- (int)performCommand:(const char *)command
	    data:(void *)data;

@end

#endif

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.