If a player tries to zone to a offline server they will see a standard error message. Also a reconnection attempt will be made on a disconnected server.

This commit is contained in:
Filip Maj 2016-12-03 14:00:24 -05:00
parent 260878df38
commit 4ce4647a75
9 changed files with 112 additions and 24 deletions

View file

@ -35,7 +35,7 @@ namespace FFXIVClassic_World_Server.DataObjects
ownedZoneIds.Add(id);
}
public void Connect()
public bool Connect()
{
Program.Log.Info("Connecting to zone server @ {0}:{1}", zoneServerIp, zoneServerPort);
IPEndPoint remoteEP = new IPEndPoint(IPAddress.Parse(zoneServerIp), zoneServerPort);
@ -60,7 +60,9 @@ namespace FFXIVClassic_World_Server.DataObjects
}
}
catch (Exception e)
{ Program.Log.Error("Failed to connect"); return; }
{ Program.Log.Error("Failed to connect"); return false; }
return true;
}
public void SendPacket(SubPacket subpacket)