//-------------------------------------------- public override void StartSend() { #if DEBUG //System.Diagnostics.Debug.WriteLine("start send"); _sendComplete = false; #endif _sendIO.StartSendAsync();///*** }
void StartSend() { if (isSend) { return; } isSend = true; sendIO.StartSendAsync(); }
public void StartSend(byte[] sendBuffer, int start, int len, Action whenSendCompleted) { //must be in opened state if (_workingState != WorkingState.Rest) { throw new Exception("sending error: state is not= opened"); } //-------------------------------------------------------------- #if DEBUG if (this.whenSendCompleted != null) { //must be null throw new Exception("sending something?..."); } #endif this.whenSendCompleted = whenSendCompleted; this._workingState = WorkingState.Sending; sendIO.EnqueueOutputData(sendBuffer, len); sendIO.StartSendAsync(); }
public void Write(string content) { byte[] dataToSend = CreateSendBuffer(content); sendIO.EnqueueOutputData(dataToSend, dataToSend.Length); sendIO.StartSendAsync(); }
public void SendIOStartSend() => _sendIO.StartSendAsync();
internal void SendExternalRaw(byte[] data) { sendIO.EnqueueOutputData(data, data.Length); sendIO.StartSendAsync(); }