public void SendAsync(string data, Action completed = null) { if (completed != null) { _socket.SendAsync(data, () => { lock (sendCallbackQueue) { sendCallbackQueue.Enqueue(completed); } }); } else { _socket.SendAsync(data); } }
public void SendAsync(string data) { _socket.SendAsync(data); }