Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update and rename AuthState.cs to AuthClient.cs #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions Source/Client/AuthClient.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System;
using Conquer_Online_Server.Network.Cryptography;
using System.Net.Sockets;
using Conquer_Online_Server.Network.Sockets;
using Conquer_Online_Server.Network;

namespace Conquer_Online_Server.Client
{
public class AuthClient
{
private ClientWrapper _socket;
public Network.AuthPackets.Authentication Info;
public Database.AccountTable Account;
public Network.Cryptography.AuthCryptography Cryptographer;
public int PasswordSeed;
public ConcurrentPacketQueue Queue;
public AuthClient(ClientWrapper socket)
{
Queue = new ConcurrentPacketQueue(0);
_socket = socket;
}
public void Send(byte[] buffer)
{
byte[] _buffer = new byte[buffer.Length];
Buffer.BlockCopy(buffer, 0, _buffer, 0, buffer.Length);
Cryptographer.Encrypt(_buffer);
_socket.Send(_buffer);
}
public void Send(Interfaces.IPacket buffer)
{
Send(buffer.ToArray());
}
public static uint nextID = 0;
}
}
63 changes: 0 additions & 63 deletions Source/Client/AuthState.cs

This file was deleted.