internal SessionRegister(byte command, string userId, byte clientType, string sessionKey) { this.MCP_Type = 0x01; this.MCP_Command = command; this.MCP_Length_Low = 31; this.__bUserId = MitakePacket.ToBytes(userId, 10); this.__bSessionKey = MitakePacket.ToBytes(sessionKey, 20); this.ClientType = clientType; }
public AuthenticationLogin(string UserID, string Password, byte ClientType, byte ISP) { this.MCP_Type = 0x01; this.MCP_Command = 0x03; this.MCP_Length_Low = 22; this.__bUserId = MitakePacket.ToBytes(UserID, 10); this.__bPassword = MitakePacket.ToBytes(Password, 10); this.ClientType = ClientType; this.ISP = ISP; }
internal AuthenticationReturn(byte hostId, string sessionKey, string remoteIP, int remotePort) { this.MCP_Type = 0x01; this.MCP_Command = 0x04; this.MCP_Length_Low = 39; this.__bHostId = hostId; this.__bPort_H = (byte)(remotePort >> 8); this.__bPort_L = (byte)(remotePort & 0xff); this.__bServiceIP = MitakePacket.ToBytes(remoteIP, 16); this.__bSessionKey = MitakePacket.ToBytes(sessionKey, 20); }