Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
if_ec.h
Package: linux-2.4.20.tar.gz [view]
Upload User: jlfgdled
Upload Date: 2013-04-10
Package Size: 33168k
Code Size: 1k
Category:
Linux-Unix program
Development Platform:
Unix_Linux
- /* Definitions for Econet sockets. */
- #ifndef __LINUX_IF_EC
- #define __LINUX_IF_EC
- /* User visible stuff. Glibc provides its own but libc5 folk will use these */
- struct ec_addr
- {
- unsigned char station; /* Station number. */
- unsigned char net; /* Network number. */
- };
- struct sockaddr_ec
- {
- unsigned short sec_family;
- unsigned char port; /* Port number. */
- unsigned char cb; /* Control/flag byte. */
- unsigned char type; /* Type of message. */
- struct ec_addr addr;
- unsigned long cookie;
- };
- #define ECTYPE_PACKET_RECEIVED 0 /* Packet received */
- #define ECTYPE_TRANSMIT_STATUS 0x10 /* Transmit completed,
- low nibble holds status */
- #define ECTYPE_TRANSMIT_OK 1
- #define ECTYPE_TRANSMIT_NOT_LISTENING 2
- #define ECTYPE_TRANSMIT_NET_ERROR 3
- #define ECTYPE_TRANSMIT_NO_CLOCK 4
- #define ECTYPE_TRANSMIT_LINE_JAMMED 5
- #define ECTYPE_TRANSMIT_NOT_PRESENT 6
- #ifdef __KERNEL__
- #define EC_HLEN 6
- /* This is what an Econet frame looks like on the wire. */
- struct ec_framehdr
- {
- unsigned char dst_stn;
- unsigned char dst_net;
- unsigned char src_stn;
- unsigned char src_net;
- unsigned char cb;
- unsigned char port;
- };
- struct econet_opt
- {
- unsigned char cb;
- unsigned char port;
- unsigned char station;
- unsigned char net;
- };
- struct ec_device
- {
- unsigned char station, net; /* Econet protocol address */
- };
- #endif
- #endif