/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="args"></param> public void SendString(object sender, StringEventArgs args) { if (OnSendString != null) { OnSendString(sender, args); } }
private static void Events_OnSendString(object sender, StringEventArgs e) { ProtocolState.Socket.Write(e.content); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="args"></param> public void RawMessage(object sender, StringEventArgs args) { if (OnRawMessage != null) { OnRawMessage(sender, args); } }