1285 lines
48 KiB
C#
1285 lines
48 KiB
C#
|
|
|
|
|
|
|
|
|
|
// Generated by PIDL compiler.
|
|
// Do not modify this file, but modify the source .pidl file.
|
|
|
|
using System;
|
|
using System.Net;
|
|
|
|
|
|
using Nettention.Proud;
|
|
namespace PClientToLogin
|
|
{
|
|
public class Stub:Nettention.Proud.RmiStub
|
|
{
|
|
public AfterRmiInvocationDelegate AfterRmiInvocation = delegate(Nettention.Proud.AfterRmiSummary summary) {};
|
|
public BeforeRmiInvocationDelegate BeforeRmiInvocation = delegate(Nettention.Proud.BeforeRmiSummary summary) {};
|
|
|
|
public delegate bool MessageDelegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, ClientToLogin clientToLogin);
|
|
public MessageDelegate Message = delegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, ClientToLogin clientToLogin)
|
|
{
|
|
return false;
|
|
};
|
|
public override bool ProcessReceivedMessage(Nettention.Proud.ReceivedMessage pa, Object hostTag)
|
|
{
|
|
Nettention.Proud.HostID remote=pa.RemoteHostID;
|
|
if(remote==Nettention.Proud.HostID.HostID_None)
|
|
{
|
|
ShowUnknownHostIDWarning(remote);
|
|
}
|
|
|
|
Nettention.Proud.Message __msg=pa.ReadOnlyMessage;
|
|
int orgReadOffset = __msg.ReadOffset;
|
|
Nettention.Proud.RmiID __rmiID = Nettention.Proud.RmiID.RmiID_None;
|
|
if (!__msg.Read( out __rmiID))
|
|
goto __fail;
|
|
|
|
switch(__rmiID)
|
|
{
|
|
case Common.Message:
|
|
ProcessReceivedMessage_Message(__msg, pa, hostTag, remote);
|
|
break;
|
|
default:
|
|
goto __fail;
|
|
}
|
|
return true;
|
|
__fail:
|
|
{
|
|
__msg.ReadOffset = orgReadOffset;
|
|
return false;
|
|
}
|
|
}
|
|
void ProcessReceivedMessage_Message(Nettention.Proud.Message __msg, Nettention.Proud.ReceivedMessage pa, Object hostTag, Nettention.Proud.HostID remote)
|
|
{
|
|
Nettention.Proud.RmiContext ctx = new Nettention.Proud.RmiContext();
|
|
ctx.sentFrom=pa.RemoteHostID;
|
|
ctx.relayed=pa.IsRelayed;
|
|
ctx.hostTag=hostTag;
|
|
ctx.encryptMode = pa.EncryptMode;
|
|
ctx.compressMode = pa.CompressMode;
|
|
|
|
ClientToLogin clientToLogin; Protocol.CaliMarshaler.Read(__msg,out clientToLogin);
|
|
core.PostCheckReadMessage(__msg, RmiName_Message);
|
|
if(enableNotifyCallFromStub==true)
|
|
{
|
|
string parameterString = "";
|
|
parameterString+=clientToLogin.ToString()+",";
|
|
NotifyCallFromStub(Common.Message, RmiName_Message,parameterString);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.BeforeRmiSummary summary = new Nettention.Proud.BeforeRmiSummary();
|
|
summary.rmiID = Common.Message;
|
|
summary.rmiName = RmiName_Message;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
BeforeRmiInvocation(summary);
|
|
}
|
|
|
|
long t0 = Nettention.Proud.PreciseCurrentTime.GetTimeMs();
|
|
|
|
// Call this method.
|
|
bool __ret =Message (remote,ctx , clientToLogin );
|
|
|
|
if(__ret==false)
|
|
{
|
|
// Error: RMI function that a user did not create has been called.
|
|
core.ShowNotImplementedRmiWarning(RmiName_Message);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.AfterRmiSummary summary = new Nettention.Proud.AfterRmiSummary();
|
|
summary.rmiID = Common.Message;
|
|
summary.rmiName = RmiName_Message;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
summary.elapsedTime = Nettention.Proud.PreciseCurrentTime.GetTimeMs()-t0;
|
|
AfterRmiInvocation(summary);
|
|
}
|
|
}
|
|
#if USE_RMI_NAME_STRING
|
|
// RMI name declaration.
|
|
// It is the unique pointer that indicates RMI name such as RMI profiler.
|
|
public const string RmiName_Message="Message";
|
|
|
|
public const string RmiName_First = RmiName_Message;
|
|
#else
|
|
// RMI name declaration.
|
|
// It is the unique pointer that indicates RMI name such as RMI profiler.
|
|
public const string RmiName_Message="";
|
|
|
|
public const string RmiName_First = "";
|
|
#endif
|
|
|
|
public override Nettention.Proud.RmiID[] GetRmiIDList { get{return Common.RmiIDList;} }
|
|
|
|
}
|
|
}
|
|
namespace PClientToGame
|
|
{
|
|
public class Stub:Nettention.Proud.RmiStub
|
|
{
|
|
public AfterRmiInvocationDelegate AfterRmiInvocation = delegate(Nettention.Proud.AfterRmiSummary summary) {};
|
|
public BeforeRmiInvocationDelegate BeforeRmiInvocation = delegate(Nettention.Proud.BeforeRmiSummary summary) {};
|
|
|
|
public delegate bool MessageDelegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, ClientToGame clientToGame);
|
|
public MessageDelegate Message = delegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, ClientToGame clientToGame)
|
|
{
|
|
return false;
|
|
};
|
|
public delegate bool P2PVoiceChatDelegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, System.String id, Nettention.Proud.ByteArray data);
|
|
public P2PVoiceChatDelegate P2PVoiceChat = delegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, System.String id, Nettention.Proud.ByteArray data)
|
|
{
|
|
return false;
|
|
};
|
|
public delegate bool P2PMotionSyncDelegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, System.String id, Nettention.Proud.ByteArray data);
|
|
public P2PMotionSyncDelegate P2PMotionSync = delegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, System.String id, Nettention.Proud.ByteArray data)
|
|
{
|
|
return false;
|
|
};
|
|
public delegate bool P2PPartySyncDelegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, System.String id, Nettention.Proud.ByteArray data);
|
|
public P2PPartySyncDelegate P2PPartySync = delegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, System.String id, Nettention.Proud.ByteArray data)
|
|
{
|
|
return false;
|
|
};
|
|
public override bool ProcessReceivedMessage(Nettention.Proud.ReceivedMessage pa, Object hostTag)
|
|
{
|
|
Nettention.Proud.HostID remote=pa.RemoteHostID;
|
|
if(remote==Nettention.Proud.HostID.HostID_None)
|
|
{
|
|
ShowUnknownHostIDWarning(remote);
|
|
}
|
|
|
|
Nettention.Proud.Message __msg=pa.ReadOnlyMessage;
|
|
int orgReadOffset = __msg.ReadOffset;
|
|
Nettention.Proud.RmiID __rmiID = Nettention.Proud.RmiID.RmiID_None;
|
|
if (!__msg.Read( out __rmiID))
|
|
goto __fail;
|
|
|
|
switch(__rmiID)
|
|
{
|
|
case Common.Message:
|
|
ProcessReceivedMessage_Message(__msg, pa, hostTag, remote);
|
|
break;
|
|
case Common.P2PVoiceChat:
|
|
ProcessReceivedMessage_P2PVoiceChat(__msg, pa, hostTag, remote);
|
|
break;
|
|
case Common.P2PMotionSync:
|
|
ProcessReceivedMessage_P2PMotionSync(__msg, pa, hostTag, remote);
|
|
break;
|
|
case Common.P2PPartySync:
|
|
ProcessReceivedMessage_P2PPartySync(__msg, pa, hostTag, remote);
|
|
break;
|
|
default:
|
|
goto __fail;
|
|
}
|
|
return true;
|
|
__fail:
|
|
{
|
|
__msg.ReadOffset = orgReadOffset;
|
|
return false;
|
|
}
|
|
}
|
|
void ProcessReceivedMessage_Message(Nettention.Proud.Message __msg, Nettention.Proud.ReceivedMessage pa, Object hostTag, Nettention.Proud.HostID remote)
|
|
{
|
|
Nettention.Proud.RmiContext ctx = new Nettention.Proud.RmiContext();
|
|
ctx.sentFrom=pa.RemoteHostID;
|
|
ctx.relayed=pa.IsRelayed;
|
|
ctx.hostTag=hostTag;
|
|
ctx.encryptMode = pa.EncryptMode;
|
|
ctx.compressMode = pa.CompressMode;
|
|
|
|
ClientToGame clientToGame; Protocol.CaliMarshaler.Read(__msg,out clientToGame);
|
|
core.PostCheckReadMessage(__msg, RmiName_Message);
|
|
if(enableNotifyCallFromStub==true)
|
|
{
|
|
string parameterString = "";
|
|
parameterString+=clientToGame.ToString()+",";
|
|
NotifyCallFromStub(Common.Message, RmiName_Message,parameterString);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.BeforeRmiSummary summary = new Nettention.Proud.BeforeRmiSummary();
|
|
summary.rmiID = Common.Message;
|
|
summary.rmiName = RmiName_Message;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
BeforeRmiInvocation(summary);
|
|
}
|
|
|
|
long t0 = Nettention.Proud.PreciseCurrentTime.GetTimeMs();
|
|
|
|
// Call this method.
|
|
bool __ret =Message (remote,ctx , clientToGame );
|
|
|
|
if(__ret==false)
|
|
{
|
|
// Error: RMI function that a user did not create has been called.
|
|
core.ShowNotImplementedRmiWarning(RmiName_Message);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.AfterRmiSummary summary = new Nettention.Proud.AfterRmiSummary();
|
|
summary.rmiID = Common.Message;
|
|
summary.rmiName = RmiName_Message;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
summary.elapsedTime = Nettention.Proud.PreciseCurrentTime.GetTimeMs()-t0;
|
|
AfterRmiInvocation(summary);
|
|
}
|
|
}
|
|
void ProcessReceivedMessage_P2PVoiceChat(Nettention.Proud.Message __msg, Nettention.Proud.ReceivedMessage pa, Object hostTag, Nettention.Proud.HostID remote)
|
|
{
|
|
Nettention.Proud.RmiContext ctx = new Nettention.Proud.RmiContext();
|
|
ctx.sentFrom=pa.RemoteHostID;
|
|
ctx.relayed=pa.IsRelayed;
|
|
ctx.hostTag=hostTag;
|
|
ctx.encryptMode = pa.EncryptMode;
|
|
ctx.compressMode = pa.CompressMode;
|
|
|
|
System.String id; Protocol.CaliMarshaler.Read(__msg,out id);
|
|
Nettention.Proud.ByteArray data; Protocol.CaliMarshaler.Read(__msg,out data);
|
|
core.PostCheckReadMessage(__msg, RmiName_P2PVoiceChat);
|
|
if(enableNotifyCallFromStub==true)
|
|
{
|
|
string parameterString = "";
|
|
parameterString+=id.ToString()+",";
|
|
parameterString+=data.ToString()+",";
|
|
NotifyCallFromStub(Common.P2PVoiceChat, RmiName_P2PVoiceChat,parameterString);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.BeforeRmiSummary summary = new Nettention.Proud.BeforeRmiSummary();
|
|
summary.rmiID = Common.P2PVoiceChat;
|
|
summary.rmiName = RmiName_P2PVoiceChat;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
BeforeRmiInvocation(summary);
|
|
}
|
|
|
|
long t0 = Nettention.Proud.PreciseCurrentTime.GetTimeMs();
|
|
|
|
// Call this method.
|
|
bool __ret =P2PVoiceChat (remote,ctx , id, data );
|
|
|
|
if(__ret==false)
|
|
{
|
|
// Error: RMI function that a user did not create has been called.
|
|
core.ShowNotImplementedRmiWarning(RmiName_P2PVoiceChat);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.AfterRmiSummary summary = new Nettention.Proud.AfterRmiSummary();
|
|
summary.rmiID = Common.P2PVoiceChat;
|
|
summary.rmiName = RmiName_P2PVoiceChat;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
summary.elapsedTime = Nettention.Proud.PreciseCurrentTime.GetTimeMs()-t0;
|
|
AfterRmiInvocation(summary);
|
|
}
|
|
}
|
|
void ProcessReceivedMessage_P2PMotionSync(Nettention.Proud.Message __msg, Nettention.Proud.ReceivedMessage pa, Object hostTag, Nettention.Proud.HostID remote)
|
|
{
|
|
Nettention.Proud.RmiContext ctx = new Nettention.Proud.RmiContext();
|
|
ctx.sentFrom=pa.RemoteHostID;
|
|
ctx.relayed=pa.IsRelayed;
|
|
ctx.hostTag=hostTag;
|
|
ctx.encryptMode = pa.EncryptMode;
|
|
ctx.compressMode = pa.CompressMode;
|
|
|
|
System.String id; Protocol.CaliMarshaler.Read(__msg,out id);
|
|
Nettention.Proud.ByteArray data; Protocol.CaliMarshaler.Read(__msg,out data);
|
|
core.PostCheckReadMessage(__msg, RmiName_P2PMotionSync);
|
|
if(enableNotifyCallFromStub==true)
|
|
{
|
|
string parameterString = "";
|
|
parameterString+=id.ToString()+",";
|
|
parameterString+=data.ToString()+",";
|
|
NotifyCallFromStub(Common.P2PMotionSync, RmiName_P2PMotionSync,parameterString);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.BeforeRmiSummary summary = new Nettention.Proud.BeforeRmiSummary();
|
|
summary.rmiID = Common.P2PMotionSync;
|
|
summary.rmiName = RmiName_P2PMotionSync;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
BeforeRmiInvocation(summary);
|
|
}
|
|
|
|
long t0 = Nettention.Proud.PreciseCurrentTime.GetTimeMs();
|
|
|
|
// Call this method.
|
|
bool __ret =P2PMotionSync (remote,ctx , id, data );
|
|
|
|
if(__ret==false)
|
|
{
|
|
// Error: RMI function that a user did not create has been called.
|
|
core.ShowNotImplementedRmiWarning(RmiName_P2PMotionSync);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.AfterRmiSummary summary = new Nettention.Proud.AfterRmiSummary();
|
|
summary.rmiID = Common.P2PMotionSync;
|
|
summary.rmiName = RmiName_P2PMotionSync;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
summary.elapsedTime = Nettention.Proud.PreciseCurrentTime.GetTimeMs()-t0;
|
|
AfterRmiInvocation(summary);
|
|
}
|
|
}
|
|
void ProcessReceivedMessage_P2PPartySync(Nettention.Proud.Message __msg, Nettention.Proud.ReceivedMessage pa, Object hostTag, Nettention.Proud.HostID remote)
|
|
{
|
|
Nettention.Proud.RmiContext ctx = new Nettention.Proud.RmiContext();
|
|
ctx.sentFrom=pa.RemoteHostID;
|
|
ctx.relayed=pa.IsRelayed;
|
|
ctx.hostTag=hostTag;
|
|
ctx.encryptMode = pa.EncryptMode;
|
|
ctx.compressMode = pa.CompressMode;
|
|
|
|
System.String id; Protocol.CaliMarshaler.Read(__msg,out id);
|
|
Nettention.Proud.ByteArray data; Protocol.CaliMarshaler.Read(__msg,out data);
|
|
core.PostCheckReadMessage(__msg, RmiName_P2PPartySync);
|
|
if(enableNotifyCallFromStub==true)
|
|
{
|
|
string parameterString = "";
|
|
parameterString+=id.ToString()+",";
|
|
parameterString+=data.ToString()+",";
|
|
NotifyCallFromStub(Common.P2PPartySync, RmiName_P2PPartySync,parameterString);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.BeforeRmiSummary summary = new Nettention.Proud.BeforeRmiSummary();
|
|
summary.rmiID = Common.P2PPartySync;
|
|
summary.rmiName = RmiName_P2PPartySync;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
BeforeRmiInvocation(summary);
|
|
}
|
|
|
|
long t0 = Nettention.Proud.PreciseCurrentTime.GetTimeMs();
|
|
|
|
// Call this method.
|
|
bool __ret =P2PPartySync (remote,ctx , id, data );
|
|
|
|
if(__ret==false)
|
|
{
|
|
// Error: RMI function that a user did not create has been called.
|
|
core.ShowNotImplementedRmiWarning(RmiName_P2PPartySync);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.AfterRmiSummary summary = new Nettention.Proud.AfterRmiSummary();
|
|
summary.rmiID = Common.P2PPartySync;
|
|
summary.rmiName = RmiName_P2PPartySync;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
summary.elapsedTime = Nettention.Proud.PreciseCurrentTime.GetTimeMs()-t0;
|
|
AfterRmiInvocation(summary);
|
|
}
|
|
}
|
|
#if USE_RMI_NAME_STRING
|
|
// RMI name declaration.
|
|
// It is the unique pointer that indicates RMI name such as RMI profiler.
|
|
public const string RmiName_Message="Message";
|
|
public const string RmiName_P2PVoiceChat="P2PVoiceChat";
|
|
public const string RmiName_P2PMotionSync="P2PMotionSync";
|
|
public const string RmiName_P2PPartySync="P2PPartySync";
|
|
|
|
public const string RmiName_First = RmiName_Message;
|
|
#else
|
|
// RMI name declaration.
|
|
// It is the unique pointer that indicates RMI name such as RMI profiler.
|
|
public const string RmiName_Message="";
|
|
public const string RmiName_P2PVoiceChat="";
|
|
public const string RmiName_P2PMotionSync="";
|
|
public const string RmiName_P2PPartySync="";
|
|
|
|
public const string RmiName_First = "";
|
|
#endif
|
|
|
|
public override Nettention.Proud.RmiID[] GetRmiIDList { get{return Common.RmiIDList;} }
|
|
|
|
}
|
|
}
|
|
namespace PClientToChat
|
|
{
|
|
public class Stub:Nettention.Proud.RmiStub
|
|
{
|
|
public AfterRmiInvocationDelegate AfterRmiInvocation = delegate(Nettention.Proud.AfterRmiSummary summary) {};
|
|
public BeforeRmiInvocationDelegate BeforeRmiInvocation = delegate(Nettention.Proud.BeforeRmiSummary summary) {};
|
|
|
|
public delegate bool MessageDelegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, ClientToChat clientToChat);
|
|
public MessageDelegate Message = delegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, ClientToChat clientToChat)
|
|
{
|
|
return false;
|
|
};
|
|
public delegate bool P2PVoiceChatDelegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, System.String id, Nettention.Proud.ByteArray data);
|
|
public P2PVoiceChatDelegate P2PVoiceChat = delegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, System.String id, Nettention.Proud.ByteArray data)
|
|
{
|
|
return false;
|
|
};
|
|
public override bool ProcessReceivedMessage(Nettention.Proud.ReceivedMessage pa, Object hostTag)
|
|
{
|
|
Nettention.Proud.HostID remote=pa.RemoteHostID;
|
|
if(remote==Nettention.Proud.HostID.HostID_None)
|
|
{
|
|
ShowUnknownHostIDWarning(remote);
|
|
}
|
|
|
|
Nettention.Proud.Message __msg=pa.ReadOnlyMessage;
|
|
int orgReadOffset = __msg.ReadOffset;
|
|
Nettention.Proud.RmiID __rmiID = Nettention.Proud.RmiID.RmiID_None;
|
|
if (!__msg.Read( out __rmiID))
|
|
goto __fail;
|
|
|
|
switch(__rmiID)
|
|
{
|
|
case Common.Message:
|
|
ProcessReceivedMessage_Message(__msg, pa, hostTag, remote);
|
|
break;
|
|
case Common.P2PVoiceChat:
|
|
ProcessReceivedMessage_P2PVoiceChat(__msg, pa, hostTag, remote);
|
|
break;
|
|
default:
|
|
goto __fail;
|
|
}
|
|
return true;
|
|
__fail:
|
|
{
|
|
__msg.ReadOffset = orgReadOffset;
|
|
return false;
|
|
}
|
|
}
|
|
void ProcessReceivedMessage_Message(Nettention.Proud.Message __msg, Nettention.Proud.ReceivedMessage pa, Object hostTag, Nettention.Proud.HostID remote)
|
|
{
|
|
Nettention.Proud.RmiContext ctx = new Nettention.Proud.RmiContext();
|
|
ctx.sentFrom=pa.RemoteHostID;
|
|
ctx.relayed=pa.IsRelayed;
|
|
ctx.hostTag=hostTag;
|
|
ctx.encryptMode = pa.EncryptMode;
|
|
ctx.compressMode = pa.CompressMode;
|
|
|
|
ClientToChat clientToChat; Protocol.CaliMarshaler.Read(__msg,out clientToChat);
|
|
core.PostCheckReadMessage(__msg, RmiName_Message);
|
|
if(enableNotifyCallFromStub==true)
|
|
{
|
|
string parameterString = "";
|
|
parameterString+=clientToChat.ToString()+",";
|
|
NotifyCallFromStub(Common.Message, RmiName_Message,parameterString);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.BeforeRmiSummary summary = new Nettention.Proud.BeforeRmiSummary();
|
|
summary.rmiID = Common.Message;
|
|
summary.rmiName = RmiName_Message;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
BeforeRmiInvocation(summary);
|
|
}
|
|
|
|
long t0 = Nettention.Proud.PreciseCurrentTime.GetTimeMs();
|
|
|
|
// Call this method.
|
|
bool __ret =Message (remote,ctx , clientToChat );
|
|
|
|
if(__ret==false)
|
|
{
|
|
// Error: RMI function that a user did not create has been called.
|
|
core.ShowNotImplementedRmiWarning(RmiName_Message);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.AfterRmiSummary summary = new Nettention.Proud.AfterRmiSummary();
|
|
summary.rmiID = Common.Message;
|
|
summary.rmiName = RmiName_Message;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
summary.elapsedTime = Nettention.Proud.PreciseCurrentTime.GetTimeMs()-t0;
|
|
AfterRmiInvocation(summary);
|
|
}
|
|
}
|
|
void ProcessReceivedMessage_P2PVoiceChat(Nettention.Proud.Message __msg, Nettention.Proud.ReceivedMessage pa, Object hostTag, Nettention.Proud.HostID remote)
|
|
{
|
|
Nettention.Proud.RmiContext ctx = new Nettention.Proud.RmiContext();
|
|
ctx.sentFrom=pa.RemoteHostID;
|
|
ctx.relayed=pa.IsRelayed;
|
|
ctx.hostTag=hostTag;
|
|
ctx.encryptMode = pa.EncryptMode;
|
|
ctx.compressMode = pa.CompressMode;
|
|
|
|
System.String id; Protocol.CaliMarshaler.Read(__msg,out id);
|
|
Nettention.Proud.ByteArray data; Protocol.CaliMarshaler.Read(__msg,out data);
|
|
core.PostCheckReadMessage(__msg, RmiName_P2PVoiceChat);
|
|
if(enableNotifyCallFromStub==true)
|
|
{
|
|
string parameterString = "";
|
|
parameterString+=id.ToString()+",";
|
|
parameterString+=data.ToString()+",";
|
|
NotifyCallFromStub(Common.P2PVoiceChat, RmiName_P2PVoiceChat,parameterString);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.BeforeRmiSummary summary = new Nettention.Proud.BeforeRmiSummary();
|
|
summary.rmiID = Common.P2PVoiceChat;
|
|
summary.rmiName = RmiName_P2PVoiceChat;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
BeforeRmiInvocation(summary);
|
|
}
|
|
|
|
long t0 = Nettention.Proud.PreciseCurrentTime.GetTimeMs();
|
|
|
|
// Call this method.
|
|
bool __ret =P2PVoiceChat (remote,ctx , id, data );
|
|
|
|
if(__ret==false)
|
|
{
|
|
// Error: RMI function that a user did not create has been called.
|
|
core.ShowNotImplementedRmiWarning(RmiName_P2PVoiceChat);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.AfterRmiSummary summary = new Nettention.Proud.AfterRmiSummary();
|
|
summary.rmiID = Common.P2PVoiceChat;
|
|
summary.rmiName = RmiName_P2PVoiceChat;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
summary.elapsedTime = Nettention.Proud.PreciseCurrentTime.GetTimeMs()-t0;
|
|
AfterRmiInvocation(summary);
|
|
}
|
|
}
|
|
#if USE_RMI_NAME_STRING
|
|
// RMI name declaration.
|
|
// It is the unique pointer that indicates RMI name such as RMI profiler.
|
|
public const string RmiName_Message="Message";
|
|
public const string RmiName_P2PVoiceChat="P2PVoiceChat";
|
|
|
|
public const string RmiName_First = RmiName_Message;
|
|
#else
|
|
// RMI name declaration.
|
|
// It is the unique pointer that indicates RMI name such as RMI profiler.
|
|
public const string RmiName_Message="";
|
|
public const string RmiName_P2PVoiceChat="";
|
|
|
|
public const string RmiName_First = "";
|
|
#endif
|
|
|
|
public override Nettention.Proud.RmiID[] GetRmiIDList { get{return Common.RmiIDList;} }
|
|
|
|
}
|
|
}
|
|
namespace PServerToIP
|
|
{
|
|
public class Stub:Nettention.Proud.RmiStub
|
|
{
|
|
public AfterRmiInvocationDelegate AfterRmiInvocation = delegate(Nettention.Proud.AfterRmiSummary summary) {};
|
|
public BeforeRmiInvocationDelegate BeforeRmiInvocation = delegate(Nettention.Proud.BeforeRmiSummary summary) {};
|
|
|
|
public delegate bool MessageDelegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, System.String name, System.String ip);
|
|
public MessageDelegate Message = delegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, System.String name, System.String ip)
|
|
{
|
|
return false;
|
|
};
|
|
public override bool ProcessReceivedMessage(Nettention.Proud.ReceivedMessage pa, Object hostTag)
|
|
{
|
|
Nettention.Proud.HostID remote=pa.RemoteHostID;
|
|
if(remote==Nettention.Proud.HostID.HostID_None)
|
|
{
|
|
ShowUnknownHostIDWarning(remote);
|
|
}
|
|
|
|
Nettention.Proud.Message __msg=pa.ReadOnlyMessage;
|
|
int orgReadOffset = __msg.ReadOffset;
|
|
Nettention.Proud.RmiID __rmiID = Nettention.Proud.RmiID.RmiID_None;
|
|
if (!__msg.Read( out __rmiID))
|
|
goto __fail;
|
|
|
|
switch(__rmiID)
|
|
{
|
|
case Common.Message:
|
|
ProcessReceivedMessage_Message(__msg, pa, hostTag, remote);
|
|
break;
|
|
default:
|
|
goto __fail;
|
|
}
|
|
return true;
|
|
__fail:
|
|
{
|
|
__msg.ReadOffset = orgReadOffset;
|
|
return false;
|
|
}
|
|
}
|
|
void ProcessReceivedMessage_Message(Nettention.Proud.Message __msg, Nettention.Proud.ReceivedMessage pa, Object hostTag, Nettention.Proud.HostID remote)
|
|
{
|
|
Nettention.Proud.RmiContext ctx = new Nettention.Proud.RmiContext();
|
|
ctx.sentFrom=pa.RemoteHostID;
|
|
ctx.relayed=pa.IsRelayed;
|
|
ctx.hostTag=hostTag;
|
|
ctx.encryptMode = pa.EncryptMode;
|
|
ctx.compressMode = pa.CompressMode;
|
|
|
|
System.String name; Protocol.CaliMarshaler.Read(__msg,out name);
|
|
System.String ip; Protocol.CaliMarshaler.Read(__msg,out ip);
|
|
core.PostCheckReadMessage(__msg, RmiName_Message);
|
|
if(enableNotifyCallFromStub==true)
|
|
{
|
|
string parameterString = "";
|
|
parameterString+=name.ToString()+",";
|
|
parameterString+=ip.ToString()+",";
|
|
NotifyCallFromStub(Common.Message, RmiName_Message,parameterString);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.BeforeRmiSummary summary = new Nettention.Proud.BeforeRmiSummary();
|
|
summary.rmiID = Common.Message;
|
|
summary.rmiName = RmiName_Message;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
BeforeRmiInvocation(summary);
|
|
}
|
|
|
|
long t0 = Nettention.Proud.PreciseCurrentTime.GetTimeMs();
|
|
|
|
// Call this method.
|
|
bool __ret =Message (remote,ctx , name, ip );
|
|
|
|
if(__ret==false)
|
|
{
|
|
// Error: RMI function that a user did not create has been called.
|
|
core.ShowNotImplementedRmiWarning(RmiName_Message);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.AfterRmiSummary summary = new Nettention.Proud.AfterRmiSummary();
|
|
summary.rmiID = Common.Message;
|
|
summary.rmiName = RmiName_Message;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
summary.elapsedTime = Nettention.Proud.PreciseCurrentTime.GetTimeMs()-t0;
|
|
AfterRmiInvocation(summary);
|
|
}
|
|
}
|
|
#if USE_RMI_NAME_STRING
|
|
// RMI name declaration.
|
|
// It is the unique pointer that indicates RMI name such as RMI profiler.
|
|
public const string RmiName_Message="Message";
|
|
|
|
public const string RmiName_First = RmiName_Message;
|
|
#else
|
|
// RMI name declaration.
|
|
// It is the unique pointer that indicates RMI name such as RMI profiler.
|
|
public const string RmiName_Message="";
|
|
|
|
public const string RmiName_First = "";
|
|
#endif
|
|
|
|
public override Nettention.Proud.RmiID[] GetRmiIDList { get{return Common.RmiIDList;} }
|
|
|
|
}
|
|
}
|
|
namespace PBotToManager
|
|
{
|
|
public class Stub:Nettention.Proud.RmiStub
|
|
{
|
|
public AfterRmiInvocationDelegate AfterRmiInvocation = delegate(Nettention.Proud.AfterRmiSummary summary) {};
|
|
public BeforeRmiInvocationDelegate BeforeRmiInvocation = delegate(Nettention.Proud.BeforeRmiSummary summary) {};
|
|
|
|
public delegate bool CSNotifyBotStatusDelegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, int loginConnectedBotCount, int channelConnectedBotCount, int indunConnectedBotCount);
|
|
public CSNotifyBotStatusDelegate CSNotifyBotStatus = delegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, int loginConnectedBotCount, int channelConnectedBotCount, int indunConnectedBotCount)
|
|
{
|
|
return false;
|
|
};
|
|
public delegate bool SCSendJsonDelegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, string jsonFileName, string jsonFileContents);
|
|
public SCSendJsonDelegate SCSendJson = delegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, string jsonFileName, string jsonFileContents)
|
|
{
|
|
return false;
|
|
};
|
|
public delegate bool CSSendJsonResDelegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, int nError);
|
|
public CSSendJsonResDelegate CSSendJsonRes = delegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, int nError)
|
|
{
|
|
return false;
|
|
};
|
|
public delegate bool SCNotfiyBotStartDelegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, int startIndex, int Count);
|
|
public SCNotfiyBotStartDelegate SCNotfiyBotStart = delegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, int startIndex, int Count)
|
|
{
|
|
return false;
|
|
};
|
|
public delegate bool CSNotfiyBotStartResDelegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, int nError);
|
|
public CSNotfiyBotStartResDelegate CSNotfiyBotStartRes = delegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, int nError)
|
|
{
|
|
return false;
|
|
};
|
|
public delegate bool SCNotfiyBotEndDelegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext);
|
|
public SCNotfiyBotEndDelegate SCNotfiyBotEnd = delegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext)
|
|
{
|
|
return false;
|
|
};
|
|
public delegate bool CSNotfiyBotEndResDelegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, int nError);
|
|
public CSNotfiyBotEndResDelegate CSNotfiyBotEndRes = delegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, int nError)
|
|
{
|
|
return false;
|
|
};
|
|
public override bool ProcessReceivedMessage(Nettention.Proud.ReceivedMessage pa, Object hostTag)
|
|
{
|
|
Nettention.Proud.HostID remote=pa.RemoteHostID;
|
|
if(remote==Nettention.Proud.HostID.HostID_None)
|
|
{
|
|
ShowUnknownHostIDWarning(remote);
|
|
}
|
|
|
|
Nettention.Proud.Message __msg=pa.ReadOnlyMessage;
|
|
int orgReadOffset = __msg.ReadOffset;
|
|
Nettention.Proud.RmiID __rmiID = Nettention.Proud.RmiID.RmiID_None;
|
|
if (!__msg.Read( out __rmiID))
|
|
goto __fail;
|
|
|
|
switch(__rmiID)
|
|
{
|
|
case Common.CSNotifyBotStatus:
|
|
ProcessReceivedMessage_CSNotifyBotStatus(__msg, pa, hostTag, remote);
|
|
break;
|
|
case Common.SCSendJson:
|
|
ProcessReceivedMessage_SCSendJson(__msg, pa, hostTag, remote);
|
|
break;
|
|
case Common.CSSendJsonRes:
|
|
ProcessReceivedMessage_CSSendJsonRes(__msg, pa, hostTag, remote);
|
|
break;
|
|
case Common.SCNotfiyBotStart:
|
|
ProcessReceivedMessage_SCNotfiyBotStart(__msg, pa, hostTag, remote);
|
|
break;
|
|
case Common.CSNotfiyBotStartRes:
|
|
ProcessReceivedMessage_CSNotfiyBotStartRes(__msg, pa, hostTag, remote);
|
|
break;
|
|
case Common.SCNotfiyBotEnd:
|
|
ProcessReceivedMessage_SCNotfiyBotEnd(__msg, pa, hostTag, remote);
|
|
break;
|
|
case Common.CSNotfiyBotEndRes:
|
|
ProcessReceivedMessage_CSNotfiyBotEndRes(__msg, pa, hostTag, remote);
|
|
break;
|
|
default:
|
|
goto __fail;
|
|
}
|
|
return true;
|
|
__fail:
|
|
{
|
|
__msg.ReadOffset = orgReadOffset;
|
|
return false;
|
|
}
|
|
}
|
|
void ProcessReceivedMessage_CSNotifyBotStatus(Nettention.Proud.Message __msg, Nettention.Proud.ReceivedMessage pa, Object hostTag, Nettention.Proud.HostID remote)
|
|
{
|
|
Nettention.Proud.RmiContext ctx = new Nettention.Proud.RmiContext();
|
|
ctx.sentFrom=pa.RemoteHostID;
|
|
ctx.relayed=pa.IsRelayed;
|
|
ctx.hostTag=hostTag;
|
|
ctx.encryptMode = pa.EncryptMode;
|
|
ctx.compressMode = pa.CompressMode;
|
|
|
|
int loginConnectedBotCount; Protocol.CaliMarshaler.Read(__msg,out loginConnectedBotCount);
|
|
int channelConnectedBotCount; Protocol.CaliMarshaler.Read(__msg,out channelConnectedBotCount);
|
|
int indunConnectedBotCount; Protocol.CaliMarshaler.Read(__msg,out indunConnectedBotCount);
|
|
core.PostCheckReadMessage(__msg, RmiName_CSNotifyBotStatus);
|
|
if(enableNotifyCallFromStub==true)
|
|
{
|
|
string parameterString = "";
|
|
parameterString+=loginConnectedBotCount.ToString()+",";
|
|
parameterString+=channelConnectedBotCount.ToString()+",";
|
|
parameterString+=indunConnectedBotCount.ToString()+",";
|
|
NotifyCallFromStub(Common.CSNotifyBotStatus, RmiName_CSNotifyBotStatus,parameterString);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.BeforeRmiSummary summary = new Nettention.Proud.BeforeRmiSummary();
|
|
summary.rmiID = Common.CSNotifyBotStatus;
|
|
summary.rmiName = RmiName_CSNotifyBotStatus;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
BeforeRmiInvocation(summary);
|
|
}
|
|
|
|
long t0 = Nettention.Proud.PreciseCurrentTime.GetTimeMs();
|
|
|
|
// Call this method.
|
|
bool __ret =CSNotifyBotStatus (remote,ctx , loginConnectedBotCount, channelConnectedBotCount, indunConnectedBotCount );
|
|
|
|
if(__ret==false)
|
|
{
|
|
// Error: RMI function that a user did not create has been called.
|
|
core.ShowNotImplementedRmiWarning(RmiName_CSNotifyBotStatus);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.AfterRmiSummary summary = new Nettention.Proud.AfterRmiSummary();
|
|
summary.rmiID = Common.CSNotifyBotStatus;
|
|
summary.rmiName = RmiName_CSNotifyBotStatus;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
summary.elapsedTime = Nettention.Proud.PreciseCurrentTime.GetTimeMs()-t0;
|
|
AfterRmiInvocation(summary);
|
|
}
|
|
}
|
|
void ProcessReceivedMessage_SCSendJson(Nettention.Proud.Message __msg, Nettention.Proud.ReceivedMessage pa, Object hostTag, Nettention.Proud.HostID remote)
|
|
{
|
|
Nettention.Proud.RmiContext ctx = new Nettention.Proud.RmiContext();
|
|
ctx.sentFrom=pa.RemoteHostID;
|
|
ctx.relayed=pa.IsRelayed;
|
|
ctx.hostTag=hostTag;
|
|
ctx.encryptMode = pa.EncryptMode;
|
|
ctx.compressMode = pa.CompressMode;
|
|
|
|
string jsonFileName; Protocol.CaliMarshaler.Read(__msg,out jsonFileName);
|
|
string jsonFileContents; Protocol.CaliMarshaler.Read(__msg,out jsonFileContents);
|
|
core.PostCheckReadMessage(__msg, RmiName_SCSendJson);
|
|
if(enableNotifyCallFromStub==true)
|
|
{
|
|
string parameterString = "";
|
|
parameterString+=jsonFileName.ToString()+",";
|
|
parameterString+=jsonFileContents.ToString()+",";
|
|
NotifyCallFromStub(Common.SCSendJson, RmiName_SCSendJson,parameterString);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.BeforeRmiSummary summary = new Nettention.Proud.BeforeRmiSummary();
|
|
summary.rmiID = Common.SCSendJson;
|
|
summary.rmiName = RmiName_SCSendJson;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
BeforeRmiInvocation(summary);
|
|
}
|
|
|
|
long t0 = Nettention.Proud.PreciseCurrentTime.GetTimeMs();
|
|
|
|
// Call this method.
|
|
bool __ret =SCSendJson (remote,ctx , jsonFileName, jsonFileContents );
|
|
|
|
if(__ret==false)
|
|
{
|
|
// Error: RMI function that a user did not create has been called.
|
|
core.ShowNotImplementedRmiWarning(RmiName_SCSendJson);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.AfterRmiSummary summary = new Nettention.Proud.AfterRmiSummary();
|
|
summary.rmiID = Common.SCSendJson;
|
|
summary.rmiName = RmiName_SCSendJson;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
summary.elapsedTime = Nettention.Proud.PreciseCurrentTime.GetTimeMs()-t0;
|
|
AfterRmiInvocation(summary);
|
|
}
|
|
}
|
|
void ProcessReceivedMessage_CSSendJsonRes(Nettention.Proud.Message __msg, Nettention.Proud.ReceivedMessage pa, Object hostTag, Nettention.Proud.HostID remote)
|
|
{
|
|
Nettention.Proud.RmiContext ctx = new Nettention.Proud.RmiContext();
|
|
ctx.sentFrom=pa.RemoteHostID;
|
|
ctx.relayed=pa.IsRelayed;
|
|
ctx.hostTag=hostTag;
|
|
ctx.encryptMode = pa.EncryptMode;
|
|
ctx.compressMode = pa.CompressMode;
|
|
|
|
int nError; Protocol.CaliMarshaler.Read(__msg,out nError);
|
|
core.PostCheckReadMessage(__msg, RmiName_CSSendJsonRes);
|
|
if(enableNotifyCallFromStub==true)
|
|
{
|
|
string parameterString = "";
|
|
parameterString+=nError.ToString()+",";
|
|
NotifyCallFromStub(Common.CSSendJsonRes, RmiName_CSSendJsonRes,parameterString);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.BeforeRmiSummary summary = new Nettention.Proud.BeforeRmiSummary();
|
|
summary.rmiID = Common.CSSendJsonRes;
|
|
summary.rmiName = RmiName_CSSendJsonRes;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
BeforeRmiInvocation(summary);
|
|
}
|
|
|
|
long t0 = Nettention.Proud.PreciseCurrentTime.GetTimeMs();
|
|
|
|
// Call this method.
|
|
bool __ret =CSSendJsonRes (remote,ctx , nError );
|
|
|
|
if(__ret==false)
|
|
{
|
|
// Error: RMI function that a user did not create has been called.
|
|
core.ShowNotImplementedRmiWarning(RmiName_CSSendJsonRes);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.AfterRmiSummary summary = new Nettention.Proud.AfterRmiSummary();
|
|
summary.rmiID = Common.CSSendJsonRes;
|
|
summary.rmiName = RmiName_CSSendJsonRes;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
summary.elapsedTime = Nettention.Proud.PreciseCurrentTime.GetTimeMs()-t0;
|
|
AfterRmiInvocation(summary);
|
|
}
|
|
}
|
|
void ProcessReceivedMessage_SCNotfiyBotStart(Nettention.Proud.Message __msg, Nettention.Proud.ReceivedMessage pa, Object hostTag, Nettention.Proud.HostID remote)
|
|
{
|
|
Nettention.Proud.RmiContext ctx = new Nettention.Proud.RmiContext();
|
|
ctx.sentFrom=pa.RemoteHostID;
|
|
ctx.relayed=pa.IsRelayed;
|
|
ctx.hostTag=hostTag;
|
|
ctx.encryptMode = pa.EncryptMode;
|
|
ctx.compressMode = pa.CompressMode;
|
|
|
|
int startIndex; Protocol.CaliMarshaler.Read(__msg,out startIndex);
|
|
int Count; Protocol.CaliMarshaler.Read(__msg,out Count);
|
|
core.PostCheckReadMessage(__msg, RmiName_SCNotfiyBotStart);
|
|
if(enableNotifyCallFromStub==true)
|
|
{
|
|
string parameterString = "";
|
|
parameterString+=startIndex.ToString()+",";
|
|
parameterString+=Count.ToString()+",";
|
|
NotifyCallFromStub(Common.SCNotfiyBotStart, RmiName_SCNotfiyBotStart,parameterString);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.BeforeRmiSummary summary = new Nettention.Proud.BeforeRmiSummary();
|
|
summary.rmiID = Common.SCNotfiyBotStart;
|
|
summary.rmiName = RmiName_SCNotfiyBotStart;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
BeforeRmiInvocation(summary);
|
|
}
|
|
|
|
long t0 = Nettention.Proud.PreciseCurrentTime.GetTimeMs();
|
|
|
|
// Call this method.
|
|
bool __ret =SCNotfiyBotStart (remote,ctx , startIndex, Count );
|
|
|
|
if(__ret==false)
|
|
{
|
|
// Error: RMI function that a user did not create has been called.
|
|
core.ShowNotImplementedRmiWarning(RmiName_SCNotfiyBotStart);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.AfterRmiSummary summary = new Nettention.Proud.AfterRmiSummary();
|
|
summary.rmiID = Common.SCNotfiyBotStart;
|
|
summary.rmiName = RmiName_SCNotfiyBotStart;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
summary.elapsedTime = Nettention.Proud.PreciseCurrentTime.GetTimeMs()-t0;
|
|
AfterRmiInvocation(summary);
|
|
}
|
|
}
|
|
void ProcessReceivedMessage_CSNotfiyBotStartRes(Nettention.Proud.Message __msg, Nettention.Proud.ReceivedMessage pa, Object hostTag, Nettention.Proud.HostID remote)
|
|
{
|
|
Nettention.Proud.RmiContext ctx = new Nettention.Proud.RmiContext();
|
|
ctx.sentFrom=pa.RemoteHostID;
|
|
ctx.relayed=pa.IsRelayed;
|
|
ctx.hostTag=hostTag;
|
|
ctx.encryptMode = pa.EncryptMode;
|
|
ctx.compressMode = pa.CompressMode;
|
|
|
|
int nError; Protocol.CaliMarshaler.Read(__msg,out nError);
|
|
core.PostCheckReadMessage(__msg, RmiName_CSNotfiyBotStartRes);
|
|
if(enableNotifyCallFromStub==true)
|
|
{
|
|
string parameterString = "";
|
|
parameterString+=nError.ToString()+",";
|
|
NotifyCallFromStub(Common.CSNotfiyBotStartRes, RmiName_CSNotfiyBotStartRes,parameterString);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.BeforeRmiSummary summary = new Nettention.Proud.BeforeRmiSummary();
|
|
summary.rmiID = Common.CSNotfiyBotStartRes;
|
|
summary.rmiName = RmiName_CSNotfiyBotStartRes;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
BeforeRmiInvocation(summary);
|
|
}
|
|
|
|
long t0 = Nettention.Proud.PreciseCurrentTime.GetTimeMs();
|
|
|
|
// Call this method.
|
|
bool __ret =CSNotfiyBotStartRes (remote,ctx , nError );
|
|
|
|
if(__ret==false)
|
|
{
|
|
// Error: RMI function that a user did not create has been called.
|
|
core.ShowNotImplementedRmiWarning(RmiName_CSNotfiyBotStartRes);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.AfterRmiSummary summary = new Nettention.Proud.AfterRmiSummary();
|
|
summary.rmiID = Common.CSNotfiyBotStartRes;
|
|
summary.rmiName = RmiName_CSNotfiyBotStartRes;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
summary.elapsedTime = Nettention.Proud.PreciseCurrentTime.GetTimeMs()-t0;
|
|
AfterRmiInvocation(summary);
|
|
}
|
|
}
|
|
void ProcessReceivedMessage_SCNotfiyBotEnd(Nettention.Proud.Message __msg, Nettention.Proud.ReceivedMessage pa, Object hostTag, Nettention.Proud.HostID remote)
|
|
{
|
|
Nettention.Proud.RmiContext ctx = new Nettention.Proud.RmiContext();
|
|
ctx.sentFrom=pa.RemoteHostID;
|
|
ctx.relayed=pa.IsRelayed;
|
|
ctx.hostTag=hostTag;
|
|
ctx.encryptMode = pa.EncryptMode;
|
|
ctx.compressMode = pa.CompressMode;
|
|
|
|
core.PostCheckReadMessage(__msg, RmiName_SCNotfiyBotEnd);
|
|
if(enableNotifyCallFromStub==true)
|
|
{
|
|
string parameterString = "";
|
|
NotifyCallFromStub(Common.SCNotfiyBotEnd, RmiName_SCNotfiyBotEnd,parameterString);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.BeforeRmiSummary summary = new Nettention.Proud.BeforeRmiSummary();
|
|
summary.rmiID = Common.SCNotfiyBotEnd;
|
|
summary.rmiName = RmiName_SCNotfiyBotEnd;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
BeforeRmiInvocation(summary);
|
|
}
|
|
|
|
long t0 = Nettention.Proud.PreciseCurrentTime.GetTimeMs();
|
|
|
|
// Call this method.
|
|
bool __ret =SCNotfiyBotEnd (remote,ctx );
|
|
|
|
if(__ret==false)
|
|
{
|
|
// Error: RMI function that a user did not create has been called.
|
|
core.ShowNotImplementedRmiWarning(RmiName_SCNotfiyBotEnd);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.AfterRmiSummary summary = new Nettention.Proud.AfterRmiSummary();
|
|
summary.rmiID = Common.SCNotfiyBotEnd;
|
|
summary.rmiName = RmiName_SCNotfiyBotEnd;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
summary.elapsedTime = Nettention.Proud.PreciseCurrentTime.GetTimeMs()-t0;
|
|
AfterRmiInvocation(summary);
|
|
}
|
|
}
|
|
void ProcessReceivedMessage_CSNotfiyBotEndRes(Nettention.Proud.Message __msg, Nettention.Proud.ReceivedMessage pa, Object hostTag, Nettention.Proud.HostID remote)
|
|
{
|
|
Nettention.Proud.RmiContext ctx = new Nettention.Proud.RmiContext();
|
|
ctx.sentFrom=pa.RemoteHostID;
|
|
ctx.relayed=pa.IsRelayed;
|
|
ctx.hostTag=hostTag;
|
|
ctx.encryptMode = pa.EncryptMode;
|
|
ctx.compressMode = pa.CompressMode;
|
|
|
|
int nError; Protocol.CaliMarshaler.Read(__msg,out nError);
|
|
core.PostCheckReadMessage(__msg, RmiName_CSNotfiyBotEndRes);
|
|
if(enableNotifyCallFromStub==true)
|
|
{
|
|
string parameterString = "";
|
|
parameterString+=nError.ToString()+",";
|
|
NotifyCallFromStub(Common.CSNotfiyBotEndRes, RmiName_CSNotfiyBotEndRes,parameterString);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.BeforeRmiSummary summary = new Nettention.Proud.BeforeRmiSummary();
|
|
summary.rmiID = Common.CSNotfiyBotEndRes;
|
|
summary.rmiName = RmiName_CSNotfiyBotEndRes;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
BeforeRmiInvocation(summary);
|
|
}
|
|
|
|
long t0 = Nettention.Proud.PreciseCurrentTime.GetTimeMs();
|
|
|
|
// Call this method.
|
|
bool __ret =CSNotfiyBotEndRes (remote,ctx , nError );
|
|
|
|
if(__ret==false)
|
|
{
|
|
// Error: RMI function that a user did not create has been called.
|
|
core.ShowNotImplementedRmiWarning(RmiName_CSNotfiyBotEndRes);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.AfterRmiSummary summary = new Nettention.Proud.AfterRmiSummary();
|
|
summary.rmiID = Common.CSNotfiyBotEndRes;
|
|
summary.rmiName = RmiName_CSNotfiyBotEndRes;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
summary.elapsedTime = Nettention.Proud.PreciseCurrentTime.GetTimeMs()-t0;
|
|
AfterRmiInvocation(summary);
|
|
}
|
|
}
|
|
#if USE_RMI_NAME_STRING
|
|
// RMI name declaration.
|
|
// It is the unique pointer that indicates RMI name such as RMI profiler.
|
|
public const string RmiName_CSNotifyBotStatus="CSNotifyBotStatus";
|
|
public const string RmiName_SCSendJson="SCSendJson";
|
|
public const string RmiName_CSSendJsonRes="CSSendJsonRes";
|
|
public const string RmiName_SCNotfiyBotStart="SCNotfiyBotStart";
|
|
public const string RmiName_CSNotfiyBotStartRes="CSNotfiyBotStartRes";
|
|
public const string RmiName_SCNotfiyBotEnd="SCNotfiyBotEnd";
|
|
public const string RmiName_CSNotfiyBotEndRes="CSNotfiyBotEndRes";
|
|
|
|
public const string RmiName_First = RmiName_CSNotifyBotStatus;
|
|
#else
|
|
// RMI name declaration.
|
|
// It is the unique pointer that indicates RMI name such as RMI profiler.
|
|
public const string RmiName_CSNotifyBotStatus="";
|
|
public const string RmiName_SCSendJson="";
|
|
public const string RmiName_CSSendJsonRes="";
|
|
public const string RmiName_SCNotfiyBotStart="";
|
|
public const string RmiName_CSNotfiyBotStartRes="";
|
|
public const string RmiName_SCNotfiyBotEnd="";
|
|
public const string RmiName_CSNotfiyBotEndRes="";
|
|
|
|
public const string RmiName_First = "";
|
|
#endif
|
|
|
|
public override Nettention.Proud.RmiID[] GetRmiIDList { get{return Common.RmiIDList;} }
|
|
|
|
}
|
|
}
|
|
namespace PGameProtocol
|
|
{
|
|
public class Stub:Nettention.Proud.RmiStub
|
|
{
|
|
public AfterRmiInvocationDelegate AfterRmiInvocation = delegate(Nettention.Proud.AfterRmiSummary summary) {};
|
|
public BeforeRmiInvocationDelegate BeforeRmiInvocation = delegate(Nettention.Proud.BeforeRmiSummary summary) {};
|
|
|
|
public delegate bool ProtocolHandlerDelegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, GameProtocol gameProtocol);
|
|
public ProtocolHandlerDelegate ProtocolHandler = delegate(Nettention.Proud.HostID remote,Nettention.Proud.RmiContext rmiContext, GameProtocol gameProtocol)
|
|
{
|
|
return false;
|
|
};
|
|
public override bool ProcessReceivedMessage(Nettention.Proud.ReceivedMessage pa, Object hostTag)
|
|
{
|
|
Nettention.Proud.HostID remote=pa.RemoteHostID;
|
|
if(remote==Nettention.Proud.HostID.HostID_None)
|
|
{
|
|
ShowUnknownHostIDWarning(remote);
|
|
}
|
|
|
|
Nettention.Proud.Message __msg=pa.ReadOnlyMessage;
|
|
int orgReadOffset = __msg.ReadOffset;
|
|
Nettention.Proud.RmiID __rmiID = Nettention.Proud.RmiID.RmiID_None;
|
|
if (!__msg.Read( out __rmiID))
|
|
goto __fail;
|
|
|
|
switch(__rmiID)
|
|
{
|
|
case Common.ProtocolHandler:
|
|
ProcessReceivedMessage_ProtocolHandler(__msg, pa, hostTag, remote);
|
|
break;
|
|
default:
|
|
goto __fail;
|
|
}
|
|
return true;
|
|
__fail:
|
|
{
|
|
__msg.ReadOffset = orgReadOffset;
|
|
return false;
|
|
}
|
|
}
|
|
void ProcessReceivedMessage_ProtocolHandler(Nettention.Proud.Message __msg, Nettention.Proud.ReceivedMessage pa, Object hostTag, Nettention.Proud.HostID remote)
|
|
{
|
|
Nettention.Proud.RmiContext ctx = new Nettention.Proud.RmiContext();
|
|
ctx.sentFrom=pa.RemoteHostID;
|
|
ctx.relayed=pa.IsRelayed;
|
|
ctx.hostTag=hostTag;
|
|
ctx.encryptMode = pa.EncryptMode;
|
|
ctx.compressMode = pa.CompressMode;
|
|
|
|
GameProtocol gameProtocol; Protocol.CaliMarshaler.Read(__msg,out gameProtocol);
|
|
core.PostCheckReadMessage(__msg, RmiName_ProtocolHandler);
|
|
if(enableNotifyCallFromStub==true)
|
|
{
|
|
string parameterString = "";
|
|
parameterString+=gameProtocol.ToString()+",";
|
|
NotifyCallFromStub(Common.ProtocolHandler, RmiName_ProtocolHandler,parameterString);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.BeforeRmiSummary summary = new Nettention.Proud.BeforeRmiSummary();
|
|
summary.rmiID = Common.ProtocolHandler;
|
|
summary.rmiName = RmiName_ProtocolHandler;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
BeforeRmiInvocation(summary);
|
|
}
|
|
|
|
long t0 = Nettention.Proud.PreciseCurrentTime.GetTimeMs();
|
|
|
|
// Call this method.
|
|
bool __ret =ProtocolHandler (remote,ctx , gameProtocol );
|
|
|
|
if(__ret==false)
|
|
{
|
|
// Error: RMI function that a user did not create has been called.
|
|
core.ShowNotImplementedRmiWarning(RmiName_ProtocolHandler);
|
|
}
|
|
|
|
if(enableStubProfiling)
|
|
{
|
|
Nettention.Proud.AfterRmiSummary summary = new Nettention.Proud.AfterRmiSummary();
|
|
summary.rmiID = Common.ProtocolHandler;
|
|
summary.rmiName = RmiName_ProtocolHandler;
|
|
summary.hostID = remote;
|
|
summary.hostTag = hostTag;
|
|
summary.elapsedTime = Nettention.Proud.PreciseCurrentTime.GetTimeMs()-t0;
|
|
AfterRmiInvocation(summary);
|
|
}
|
|
}
|
|
#if USE_RMI_NAME_STRING
|
|
// RMI name declaration.
|
|
// It is the unique pointer that indicates RMI name such as RMI profiler.
|
|
public const string RmiName_ProtocolHandler="ProtocolHandler";
|
|
|
|
public const string RmiName_First = RmiName_ProtocolHandler;
|
|
#else
|
|
// RMI name declaration.
|
|
// It is the unique pointer that indicates RMI name such as RMI profiler.
|
|
public const string RmiName_ProtocolHandler="";
|
|
|
|
public const string RmiName_First = "";
|
|
#endif
|
|
|
|
public override Nettention.Proud.RmiID[] GetRmiIDList { get{return Common.RmiIDList;} }
|
|
|
|
}
|
|
}
|
|
|