废弃Net,统一为Socket

This commit is contained in:
nnhy 2016-05-27 02:08:42 +00:00
parent 2a302acdc1
commit e73fd4ed45
20 changed files with 21 additions and 20 deletions

View File

@ -1,4 +1,4 @@
#include "Net.h" #include "Socket.h"
#include "Config.h" #include "Config.h"
#define NET_DEBUG DEBUG #define NET_DEBUG DEBUG

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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协议

View File

@ -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"

View File

@ -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"

View File

@ -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;

View File

@ -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

View File

@ -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支持加密算法列表

View File

@ -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

View File

@ -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)

View File

@ -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"

View File

@ -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) // 保存对齐状态

View File

@ -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"

View File

@ -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"

View File

@ -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"