mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-22 20:55:52 +12:00
Add Multiple transports system, begin work on WebSockets
This commit is contained in:
parent
e869a23463
commit
e74f66a439
22 changed files with 3752 additions and 3301 deletions
|
@ -255,17 +255,7 @@ namespace HISP.Server
|
|||
* eg: OnMovementPacket is whenever the server receies a movement request from the client.
|
||||
*/
|
||||
|
||||
|
||||
public static void OnCrossdomainPolicyRequest(GameClient sender, byte[] packet)
|
||||
{
|
||||
if (Encoding.UTF8.GetString(packet).StartsWith("<policy-file-request/>"))
|
||||
{
|
||||
Logger.DebugPrint("Cross-Domain-Policy request received from: " + sender.RemoteIp);
|
||||
byte[] crossDomainPolicyResponse = CrossDomainPolicy.GetPolicy();
|
||||
sender.SendPacket(crossDomainPolicyResponse);
|
||||
|
||||
}
|
||||
}
|
||||
// HI1 Protocol
|
||||
|
||||
public static void OnPlayerInteration(GameClient sender, byte[] packet)
|
||||
{
|
||||
|
@ -7353,7 +7343,7 @@ namespace HISP.Server
|
|||
|
||||
UpdateInventory(sender);
|
||||
}
|
||||
public static void OnLoginRequest(GameClient sender, byte[] packet)
|
||||
public static void OnUserLogin(GameClient sender, byte[] packet)
|
||||
{
|
||||
Logger.DebugPrint("Login request received from: " + sender.RemoteIp);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue