sockutil.h
来自「W3100是WIZnet公司专门为以太网互联和嵌入式设备推出的硬件TCP/IP协」· C头文件 代码 · 共 73 行
H
73 行
#ifndef __SOCK_UTIL__
#define __SOCK_UTIL__
/*
###############################################################################
File Name : sockutil.h
Version : 1.0
Programmer(s) : Kim Woo Youl
Created : 2002/10/20 ~
Description : useful function of W3100A
###############################################################################
*/
/*
###############################################################################
Include Part
###############################################################################
*/
#include "type.h"
/*
###############################################################################
Define Part
###############################################################################
*/
#define __UNUSED_SOCK_UTIL__
/*
###############################################################################
Grobal Variable Definition Part
###############################################################################
*/
/*
###############################################################################
Function Prototype Definition Part
###############################################################################
*/
void inet_ntoa(u_char* addr,char* addr_str); /* Convert 32bit Address into Dotted Decimal Format */
void GetIPAddress(u_char* addr); /* Get Source IP Address of W3100A. */
void GetGWAddress(u_char* addr); /* Get Source IP Address of W3100A. */
void GetSubMask(u_char* addr); /* Get Source Subnet mask of W3100A. */
char GetDotNotationAddr(u_char* addr, u_int base, u_int len); /* To be input Dotted Notation string from RS232C and convert 32-bit or 48bit Decimal Address */
void GetNetConfig(); /* Read established network information(G/W, IP, S/N, Mac) of W3100A and Output that through Serial.*/
#ifndef __UNUSED_SOCK_UTIL__
char* GetDestAddr(SOCKET s,u_char* addr) /* Output destination IP address of appropriate channel */
u_long inet_addr(u_char* addr); /* Converts a string containing an (Ipv4) Internet Protocol decimal dotted address into a 32bit address */
u_int checksum(u_char * src, u_int len); /* Calculate checksum of a stream */
SOCKET getSocket(u_char status, SOCKET start); /* Get handle of socket which status is same to 'status' */
char VerifyIPAddress(char* src); /* Verify decimal dotted notation IP address string */
#endif // __UNUSED_SOCK_UTIL__
#endif // __SOCK_UTIL__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?