13.Set RMI function and Event

All events are consist of delegate and you can set a function that with each variable.


Nettention.Proud.NetClient netClient = new NetClient();
//Set  Event delegate of netclient

netClient.JoinServerCompleteHandler = myJoinServerComplete;//Event of succeed to connect server

netClient.LeaveServerHandler = OnLeaveServer;//Disconnected event

netClient.ErrorHandler = OnError;// Error Noti event

netClient.WarningHandler = OnWarning;// Warning event

netClient.InformationHandler = OnInformation;//Information event

netClient.ExceptionHandler = OnException;//Exception event

// Create function for creating event
void myJoinServerComplete(ErrorInfo info,ByteArray replyFromServer)