mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-08 07:30:29 -04:00
Removed NioTSO client and server
- NioTSO client isn't needed because we're using RayLib - Added FreeSO's API server to handle most backend operations
This commit is contained in:
parent
f12ba1502b
commit
22191ce648
591 changed files with 53264 additions and 3362 deletions
21
server/FSO.Server.Protocol/Aries/Packets/AnswerAccepted.cs
Executable file
21
server/FSO.Server.Protocol/Aries/Packets/AnswerAccepted.cs
Executable file
|
@ -0,0 +1,21 @@
|
|||
using FSO.Common.Serialization;
|
||||
using Mina.Core.Buffer;
|
||||
|
||||
namespace FSO.Server.Protocol.Aries.Packets
|
||||
{
|
||||
public class AnswerAccepted : IAriesPacket
|
||||
{
|
||||
public void Deserialize(IoBuffer input, ISerializationContext context)
|
||||
{
|
||||
}
|
||||
|
||||
public AriesPacketType GetPacketType()
|
||||
{
|
||||
return AriesPacketType.AnswerAccepted;
|
||||
}
|
||||
|
||||
public void Serialize(IoBuffer output, ISerializationContext context)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
25
server/FSO.Server.Protocol/Aries/Packets/AnswerChallenge.cs
Executable file
25
server/FSO.Server.Protocol/Aries/Packets/AnswerChallenge.cs
Executable file
|
@ -0,0 +1,25 @@
|
|||
using FSO.Common.Serialization;
|
||||
using Mina.Core.Buffer;
|
||||
|
||||
namespace FSO.Server.Protocol.Aries.Packets
|
||||
{
|
||||
public class AnswerChallenge : IAriesPacket
|
||||
{
|
||||
public string Answer;
|
||||
|
||||
public void Deserialize(IoBuffer input, ISerializationContext context)
|
||||
{
|
||||
Answer = input.GetPascalVLCString();
|
||||
}
|
||||
|
||||
public AriesPacketType GetPacketType()
|
||||
{
|
||||
return AriesPacketType.AnswerChallenge;
|
||||
}
|
||||
|
||||
public void Serialize(IoBuffer output, ISerializationContext context)
|
||||
{
|
||||
output.PutPascalVLCString(Answer);
|
||||
}
|
||||
}
|
||||
}
|
31
server/FSO.Server.Protocol/Aries/Packets/RequestChallenge.cs
Executable file
31
server/FSO.Server.Protocol/Aries/Packets/RequestChallenge.cs
Executable file
|
@ -0,0 +1,31 @@
|
|||
using FSO.Common.Serialization;
|
||||
using Mina.Core.Buffer;
|
||||
|
||||
namespace FSO.Server.Protocol.Aries.Packets
|
||||
{
|
||||
public class RequestChallenge : IAriesPacket
|
||||
{
|
||||
public string CallSign;
|
||||
public string PublicHost;
|
||||
public string InternalHost;
|
||||
|
||||
public void Deserialize(IoBuffer input, ISerializationContext context)
|
||||
{
|
||||
CallSign = input.GetPascalString();
|
||||
PublicHost = input.GetPascalString();
|
||||
InternalHost = input.GetPascalString();
|
||||
}
|
||||
|
||||
public AriesPacketType GetPacketType()
|
||||
{
|
||||
return AriesPacketType.RequestChallenge;
|
||||
}
|
||||
|
||||
public void Serialize(IoBuffer output, ISerializationContext context)
|
||||
{
|
||||
output.PutPascalString(CallSign);
|
||||
output.PutPascalString(PublicHost);
|
||||
output.PutPascalString(InternalHost);
|
||||
}
|
||||
}
|
||||
}
|
25
server/FSO.Server.Protocol/Aries/Packets/RequestChallengeResponse.cs
Executable file
25
server/FSO.Server.Protocol/Aries/Packets/RequestChallengeResponse.cs
Executable file
|
@ -0,0 +1,25 @@
|
|||
using FSO.Common.Serialization;
|
||||
using Mina.Core.Buffer;
|
||||
|
||||
namespace FSO.Server.Protocol.Aries.Packets
|
||||
{
|
||||
public class RequestChallengeResponse : IAriesPacket
|
||||
{
|
||||
public string Challenge;
|
||||
|
||||
public void Deserialize(IoBuffer input, ISerializationContext context)
|
||||
{
|
||||
Challenge = input.GetPascalVLCString();
|
||||
}
|
||||
|
||||
public AriesPacketType GetPacketType()
|
||||
{
|
||||
return AriesPacketType.RequestChallengeResponse;
|
||||
}
|
||||
|
||||
public void Serialize(IoBuffer output, ISerializationContext context)
|
||||
{
|
||||
output.PutPascalVLCString(Challenge);
|
||||
}
|
||||
}
|
||||
}
|
21
server/FSO.Server.Protocol/Aries/Packets/RequestClientSession.cs
Executable file
21
server/FSO.Server.Protocol/Aries/Packets/RequestClientSession.cs
Executable file
|
@ -0,0 +1,21 @@
|
|||
using Mina.Core.Buffer;
|
||||
using FSO.Common.Serialization;
|
||||
|
||||
namespace FSO.Server.Protocol.Aries.Packets
|
||||
{
|
||||
public class RequestClientSession : IAriesPacket
|
||||
{
|
||||
public void Deserialize(IoBuffer input, ISerializationContext context)
|
||||
{
|
||||
}
|
||||
|
||||
public AriesPacketType GetPacketType()
|
||||
{
|
||||
return AriesPacketType.RequestClientSession;
|
||||
}
|
||||
|
||||
public void Serialize(IoBuffer output, ISerializationContext context)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
50
server/FSO.Server.Protocol/Aries/Packets/RequestClientSessionResponse.cs
Executable file
50
server/FSO.Server.Protocol/Aries/Packets/RequestClientSessionResponse.cs
Executable file
|
@ -0,0 +1,50 @@
|
|||
using System.Text;
|
||||
using Mina.Core.Buffer;
|
||||
using FSO.Common.Serialization;
|
||||
|
||||
namespace FSO.Server.Protocol.Aries.Packets
|
||||
{
|
||||
public class RequestClientSessionResponse : IAriesPacket
|
||||
{
|
||||
public string User { get; set; }
|
||||
public string AriesVersion { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string Authserv { get; set; }
|
||||
public ushort Product { get; set; }
|
||||
public byte Unknown { get; set; } = 39;
|
||||
public string ServiceIdent { get; set; }
|
||||
public ushort Unknown2 { get; set; } = 4; //1 if re-establishing
|
||||
public string Password { get; set; }
|
||||
|
||||
public void Deserialize(IoBuffer input, ISerializationContext context)
|
||||
{
|
||||
this.User = input.GetString(112, Encoding.ASCII);
|
||||
this.AriesVersion = input.GetString(80, Encoding.ASCII);
|
||||
this.Email = input.GetString(40, Encoding.ASCII);
|
||||
this.Authserv = input.GetString(84, Encoding.ASCII);
|
||||
this.Product = input.GetUInt16();
|
||||
this.Unknown = input.Get();
|
||||
this.ServiceIdent = input.GetString(3, Encoding.ASCII);
|
||||
this.Unknown2 = input.GetUInt16();
|
||||
this.Password = input.GetString(32, Encoding.ASCII);
|
||||
}
|
||||
|
||||
public AriesPacketType GetPacketType()
|
||||
{
|
||||
return AriesPacketType.RequestClientSessionResponse;
|
||||
}
|
||||
|
||||
public void Serialize(IoBuffer output, ISerializationContext context)
|
||||
{
|
||||
output.PutString(this.User, 112, Encoding.ASCII);
|
||||
output.PutString(this.AriesVersion, 80, Encoding.ASCII);
|
||||
output.PutString(this.Email, 40, Encoding.ASCII);
|
||||
output.PutString(this.Authserv, 84, Encoding.ASCII);
|
||||
output.PutUInt16(this.Product);
|
||||
output.Put(this.Unknown);
|
||||
output.PutString(this.ServiceIdent, 3, Encoding.ASCII);
|
||||
output.PutUInt16(this.Unknown2);
|
||||
output.PutString(this.Password, 32, Encoding.ASCII);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue