protected void OnDataAlready(byte[] buffer, int length) { DataAlreadyEventArgs dataAlreadyEventAgrs = new DataAlreadyEventArgs { SocketBuffer = buffer, Length = length }; if (DataAlready != null) { DataAlready(this, dataAlreadyEventAgrs); } }
private void OnDataAlreadyAction(object sender, DataAlreadyEventArgs eventArgs) { WorkSocket.BeginSend(eventArgs.SocketBuffer, 5, eventArgs.Length, SocketFlags.None, Sent, eventArgs.SocketBuffer); }