0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-22 03:05:16 +00:00

Another log

This commit is contained in:
Sanae 2022-03-11 20:56:58 -06:00
parent cf5ba12861
commit 93143a80ef

View file

@ -148,6 +148,8 @@ public class Server {
&& !await Read(memory.Memory[Constants.HeaderSize..(Constants.HeaderSize + header.PacketSize)], header.PacketSize))
throw new Exception("Not enough bytes for packet data sent to server");
Logger.Info($"Got your mom {header.Type}");
// connection initialization
if (first) {
first = false;
@ -206,7 +208,7 @@ public class Server {
};
MemoryMarshal.Write(tempBuffer.Memory.Span, ref connectHeader);
ConnectPacket connectPacket = new ConnectPacket {
ConnectionType = ConnectionTypes.FirstConnection, // doesn't matter what it is :)
ConnectionType = ConnectionTypes.FirstConnection, // doesn't matter what it is
ClientName = other.Name
};
connectPacket.Serialize(tempBuffer.Memory.Span[Constants.HeaderSize..]);