mirror of
https://github.com/Sanae6/SmoOnlineServer.git
synced 2024-11-22 03:05:16 +00:00
Another log
This commit is contained in:
parent
cf5ba12861
commit
93143a80ef
1 changed files with 3 additions and 1 deletions
|
@ -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..]);
|
||||
|
|
Loading…
Reference in a new issue