private void NotifyServerStart(string data) { SocketListenerEventArgs args = new SocketListenerEventArgs(); args.type = SocketListenerEventArgs.SERVER_STERTED; args.data = data; args.TimeReached = new DateTime(); if (SocketEvent != null) { SocketEvent(this, args); } }
private void NotifyMessageReceived(string data) { SocketListenerEventArgs args = new SocketListenerEventArgs(); args.type = SocketListenerEventArgs.MESSAGE_RECEIVED; args.data = data; args.TimeReached = new DateTime(); if (SocketEvent != null) { SocketEvent(this, args); } }