废弃Net,统一为Socket
This commit is contained in:
parent
2a302acdc1
commit
e73fd4ed45
|
@ -1,4 +1,4 @@
|
||||||
#include "Net.h"
|
#include "Socket.h"
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
|
|
||||||
#define NET_DEBUG DEBUG
|
#define NET_DEBUG DEBUG
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef _Net_H_
|
#ifndef _Socket_H_
|
||||||
#define _Net_H_
|
#define _Socket_H_
|
||||||
|
|
||||||
#include "IPAddress.h"
|
#include "IPAddress.h"
|
||||||
#include "IPEndPoint.h"
|
#include "IPEndPoint.h"
|
|
@ -5,7 +5,7 @@
|
||||||
#include "Spi.h"
|
#include "Spi.h"
|
||||||
#include "Power.h"
|
#include "Power.h"
|
||||||
#include "Net\ITransport.h"
|
#include "Net\ITransport.h"
|
||||||
#include "Net\Net.h"
|
#include "Socket.h"
|
||||||
|
|
||||||
// Enc28j60类
|
// Enc28j60类
|
||||||
class Enc28j60 : public ITransport
|
class Enc28j60 : public ITransport
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#include "Sys.h"
|
#include "Sys.h"
|
||||||
#include "Port.h"
|
#include "Port.h"
|
||||||
#include "Net\ITransport.h"
|
#include "Net\ITransport.h"
|
||||||
#include "Net\Net.h"
|
#include "Socket.h"
|
||||||
#include "Message\DataStore.h"
|
#include "Message\DataStore.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#include "Spi.h"
|
#include "Spi.h"
|
||||||
#include "Power.h"
|
#include "Power.h"
|
||||||
#include "Net\ITransport.h"
|
#include "Net\ITransport.h"
|
||||||
#include "Net\Net.h"
|
#include "Socket.h"
|
||||||
#include "Message\DataStore.h"
|
#include "Message\DataStore.h"
|
||||||
|
|
||||||
#include "W5500.h"
|
#include "W5500.h"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#include "Sys.h"
|
#include "Sys.h"
|
||||||
#include "Message.h"
|
#include "Message.h"
|
||||||
|
|
||||||
#include "Net\Net.h"
|
#include "Socket.h"
|
||||||
|
|
||||||
// 二进制名值对
|
// 二进制名值对
|
||||||
class BinaryPair : public Object
|
class BinaryPair : public Object
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
#include "Time.h"
|
#include "Time.h"
|
||||||
#include "ITransport.h"
|
#include "ITransport.h"
|
||||||
|
|
||||||
|
#include "Socket.h"
|
||||||
|
|
||||||
#include "DNS.h"
|
#include "DNS.h"
|
||||||
#include "Ethernet.h"
|
#include "Ethernet.h"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#ifndef _SmartOS_DNS_H_
|
#ifndef _SmartOS_DNS_H_
|
||||||
#define _SmartOS_DNS_H_
|
#define _SmartOS_DNS_H_
|
||||||
|
|
||||||
#include "Net.h"
|
|
||||||
#include "Net\ITransport.h"
|
#include "Net\ITransport.h"
|
||||||
|
|
||||||
// DNS协议
|
// DNS协议
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "Sys.h"
|
#include "Sys.h"
|
||||||
#include "ITransport.h"
|
#include "ITransport.h"
|
||||||
|
|
||||||
#include "Net.h"
|
#include "Socket.h"
|
||||||
|
|
||||||
#include "Dhcp.h"
|
#include "Dhcp.h"
|
||||||
#include "Ethernet.h"
|
#include "Ethernet.h"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#include "Spi.h"
|
#include "Spi.h"
|
||||||
#include "Power.h"
|
#include "Power.h"
|
||||||
#include "Net\ITransport.h"
|
#include "Net\ITransport.h"
|
||||||
#include "Net\Net.h"
|
#include "Socket.h"
|
||||||
#include "Message\DataStore.h"
|
#include "Message\DataStore.h"
|
||||||
#include "Drivers\W5500.h"
|
#include "Drivers\W5500.h"
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
#include "Sys.h"
|
#include "Sys.h"
|
||||||
#include "Net\ITransport.h"
|
#include "Net\ITransport.h"
|
||||||
#include "Net\Net.h"
|
#include "Socket.h"
|
||||||
#include "Net\Ethernet.h"
|
#include "Net\Ethernet.h"
|
||||||
|
|
||||||
class TinyIP;
|
class TinyIP;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define __DeviceMessage_H__
|
#define __DeviceMessage_H__
|
||||||
|
|
||||||
#include "Message\MessageBase.h"
|
#include "Message\MessageBase.h"
|
||||||
#include "Net\Net.h"
|
#include "Socket.h"
|
||||||
#include "TokenNet\Device.h"
|
#include "TokenNet\Device.h"
|
||||||
|
|
||||||
enum class DeviceAtions : byte
|
enum class DeviceAtions : byte
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define __HelloMessage_H__
|
#define __HelloMessage_H__
|
||||||
|
|
||||||
#include "Message\MessageBase.h"
|
#include "Message\MessageBase.h"
|
||||||
#include "Net\Net.h"
|
#include "Socket.h"
|
||||||
|
|
||||||
// 握手消息
|
// 握手消息
|
||||||
// 请求:2版本 + S类型 + S名称 + 8本地时间 + 6本地IP端口 + S支持加密算法列表
|
// 请求:2版本 + S类型 + S名称 + 8本地时间 + 6本地IP端口 + S支持加密算法列表
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define __LoginMessage_H__
|
#define __LoginMessage_H__
|
||||||
|
|
||||||
#include "Message\MessageBase.h"
|
#include "Message\MessageBase.h"
|
||||||
#include "Net\Net.h"
|
#include "Socket.h"
|
||||||
|
|
||||||
// 登录消息
|
// 登录消息
|
||||||
class LoginMessage : public MessageBase
|
class LoginMessage : public MessageBase
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "RegisterMessage.h"
|
#include "RegisterMessage.h"
|
||||||
#include "Message\BinaryPair.h"
|
#include "Message\BinaryPair.h"
|
||||||
#include "Net\Net.h"
|
#include "Socket.h"
|
||||||
|
|
||||||
// 初始化消息,各字段为0
|
// 初始化消息,各字段为0
|
||||||
RegisterMessage::RegisterMessage() : User(), Pass(), Salt(0)
|
RegisterMessage::RegisterMessage() : User(), Pass(), Salt(0)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "Time.h"
|
#include "Time.h"
|
||||||
|
|
||||||
#include "Net\Net.h"
|
#include "Socket.h"
|
||||||
#include "Net\DNS.h"
|
#include "Net\DNS.h"
|
||||||
|
|
||||||
#include "Message\BinaryPair.h"
|
#include "Message\BinaryPair.h"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#include "Sys.h"
|
#include "Sys.h"
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include "Net\Net.h"
|
#include "Socket.h"
|
||||||
|
|
||||||
// 必须设定为1字节对齐,否则offsetof会得到错误的位置
|
// 必须设定为1字节对齐,否则offsetof会得到错误的位置
|
||||||
//#pragma pack(push) // 保存对齐状态
|
//#pragma pack(push) // 保存对齐状态
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "Time.h"
|
#include "Time.h"
|
||||||
#include "TokenController.h"
|
#include "TokenController.h"
|
||||||
|
|
||||||
#include "Net\Net.h"
|
#include "Socket.h"
|
||||||
#include "Security\RC4.h"
|
#include "Security\RC4.h"
|
||||||
#include "Security\Crc.h"
|
#include "Security\Crc.h"
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "Time.h"
|
#include "Time.h"
|
||||||
|
|
||||||
#include "Net\Net.h"
|
#include "Socket.h"
|
||||||
#include "Net\DNS.h"
|
#include "Net\DNS.h"
|
||||||
|
|
||||||
#include "TokenClient.h"
|
#include "TokenClient.h"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "Time.h"
|
#include "Time.h"
|
||||||
#include "TokenMessage.h"
|
#include "TokenMessage.h"
|
||||||
|
|
||||||
#include "Net\Net.h"
|
#include "Socket.h"
|
||||||
#include "Security\RC4.h"
|
#include "Security\RC4.h"
|
||||||
#include "Security\Crc.h"
|
#include "Security\Crc.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue