Browse Source

修改名称

master
DESKTOP-B25GA9E\W35 2 years ago
parent
commit
90b83fbdcd
  1. 8
      Assets/MsgTransmitTools/ExtendLinkModel/HttpServer.meta
  2. 6
      Assets/MsgTransmitTools/ExtendLinkModel/TCPServer/Script/SocketServer.cs
  3. 0
      Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer.meta
  4. 0
      Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server.meta
  5. 0
      Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/MyWebSocketServer.cs
  6. 0
      Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/MyWebSocketServer.cs.meta
  7. 0
      Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/Scenes.meta
  8. 2
      Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/Scenes/SampleScene.unity
  9. 0
      Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/Scenes/SampleScene.unity.meta
  10. 0
      Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/WebSocketServer.meta
  11. 1
      Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/WebSocketServer/WebSocketConnection.cs
  12. 0
      Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/WebSocketServer/WebSocketConnection.cs.meta
  13. 0
      Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/WebSocketServer/WebSocketProtocol.cs
  14. 0
      Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/WebSocketServer/WebSocketProtocol.cs.meta
  15. 0
      Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/WebSocketServer/WebSocketServer.cs
  16. 0
      Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/WebSocketServer/WebSocketServer.cs.meta

8
Assets/MsgTransmitTools/ExtendLinkModel/HttpServer.meta

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9c88c85318bbb6545a737c48d87ce1fd
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

6
Assets/MsgTransmitTools/ExtendLinkModel/TCPServer/Script/SocketServer.cs

@ -11,7 +11,7 @@ using UnityEngine;
public class SocketServer : MonoBehaviour public class SocketServer : MonoBehaviour
{ {
int _port = 20000; int _port = 8443;
string _ip = "192.168.1.41"; string _ip = "192.168.1.41";
Thread thread; Thread thread;
@ -91,8 +91,8 @@ public class SocketServer : MonoBehaviour
{ {
break; break;
} }
string str = Encoding.UTF8.GetString(buffer, 0, len); string str = Encoding.ASCII.GetString(buffer, 0, len);
Debug.Log("服务器打印:" + socketSend.RemoteEndPoint + ":" + str); Debug.Log("数据接收:" + socketSend.RemoteEndPoint + ":" + str);
Send("我收到了"); Send("我收到了");
} }
} }

0
Assets/MsgTransmitTools/ExtendLinkModel/WebSocket.meta → Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer.meta

0
Assets/MsgTransmitTools/ExtendLinkModel/WebSocket/Server.meta → Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server.meta

0
Assets/MsgTransmitTools/ExtendLinkModel/WebSocket/Server/MyWebSocketServer.cs → Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/MyWebSocketServer.cs

0
Assets/MsgTransmitTools/ExtendLinkModel/WebSocket/Server/MyWebSocketServer.cs.meta → Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/MyWebSocketServer.cs.meta

0
Assets/MsgTransmitTools/ExtendLinkModel/WebSocket/Server/Scenes.meta → Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/Scenes.meta

2
Assets/MsgTransmitTools/ExtendLinkModel/WebSocket/Server/Scenes/SampleScene.unity → Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/Scenes/SampleScene.unity

@ -234,7 +234,7 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
address: 192.168.1.41 address: 192.168.1.41
port: 20000 port: 8443
onOpen: onOpen:
m_PersistentCalls: m_PersistentCalls:
m_Calls: m_Calls:

0
Assets/MsgTransmitTools/ExtendLinkModel/WebSocket/Server/Scenes/SampleScene.unity.meta → Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/Scenes/SampleScene.unity.meta

0
Assets/MsgTransmitTools/ExtendLinkModel/WebSocket/Server/WebSocketServer.meta → Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/WebSocketServer.meta

1
Assets/MsgTransmitTools/ExtendLinkModel/WebSocket/Server/WebSocketServer/WebSocketConnection.cs → Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/WebSocketServer/WebSocketConnection.cs

@ -115,6 +115,7 @@ namespace WebSocketServer {
} }
} else { } else {
Debug.Log("Framentation encoutered."); Debug.Log("Framentation encoutered.");
Debug.Log("---------data:"+ Encoding.ASCII.GetString(dataframe.data));
} }
} }
} }

0
Assets/MsgTransmitTools/ExtendLinkModel/WebSocket/Server/WebSocketServer/WebSocketConnection.cs.meta → Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/WebSocketServer/WebSocketConnection.cs.meta

0
Assets/MsgTransmitTools/ExtendLinkModel/WebSocket/Server/WebSocketServer/WebSocketProtocol.cs → Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/WebSocketServer/WebSocketProtocol.cs

0
Assets/MsgTransmitTools/ExtendLinkModel/WebSocket/Server/WebSocketServer/WebSocketProtocol.cs.meta → Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/WebSocketServer/WebSocketProtocol.cs.meta

0
Assets/MsgTransmitTools/ExtendLinkModel/WebSocket/Server/WebSocketServer/WebSocketServer.cs → Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/WebSocketServer/WebSocketServer.cs

0
Assets/MsgTransmitTools/ExtendLinkModel/WebSocket/Server/WebSocketServer/WebSocketServer.cs.meta → Assets/MsgTransmitTools/ExtendLinkModel/WebSocketServer/Server/WebSocketServer/WebSocketServer.cs.meta

Loading…
Cancel
Save