Skip to content

Commit

Permalink
More rework
Browse files Browse the repository at this point in the history
  • Loading branch information
matt40k committed Dec 22, 2020
1 parent de9573d commit ba964b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
1 change: 0 additions & 1 deletion COAN/COAN.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
<Compile Include="GameDate.cs" />
<Compile Include="Info.cs" />
<Compile Include="Map.cs" />
<Compile Include="Network\Network.cs" />
<Compile Include="Enums\NetworkAction.cs" />
<Compile Include="Network\NetworkClient.cs" />
<Compile Include="Network\NetworkInputThread.cs" />
Expand Down
13 changes: 0 additions & 13 deletions COAN/Network/Network.cs

This file was deleted.

8 changes: 3 additions & 5 deletions COAN/Network/NetworkClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,11 @@ public NetworkClient()
public void Disconnect()
{
socket.Close();
//mThread.Abort();
}

public bool Connect(string hostname, int port, string password)
{
this.adminPassword = password;
adminPassword = password;
if (adminPassword.Length == 0 || hostname.Length == 0)
{
var errorMessage = "Can't connect with empty ";
Expand All @@ -86,9 +85,7 @@ public bool Connect(string hostname, int port, string password)
MessageBox.Show(errorMessage);
return false;
}
//this.adminHost = hostname;
//this.adminPort = port;
//


try
{
Expand Down Expand Up @@ -209,6 +206,7 @@ public void pollDate()

public void sendAdminJoin()
{
logger.Log(LogLevel.Trace, string.Format("sendAdminJoin - adminPassword: {0} | botName: {1} | botVersion: {2}", adminPassword, botName, botVersion));
Packet p = new Packet(getSocket(), PacketType.ADMIN_PACKET_ADMIN_JOIN);

p.WriteString(adminPassword);
Expand Down

0 comments on commit ba964b8

Please sign in to comment.