SystemExt/Network/TCPClientBase.cs
/// <summary>
/// Write an array of bytes to the client.
/// </summary>
/// <param name="data">
/// The data to write to the clienbt.
/// </param>
/// <param name="offset">
/// The offset from the start of <see cref="data"/> to start writing.
/// </param>
/// <param name="count">
/// The maximum number of bytes to write.
/// </param>
/// <returns>
/// True if starting the write succeeded, otherwise false.
/// </returns>
Write an array of bytes to the client.
Write an array of bytes to the client .
public bool Write(byte[] data, int offset, int count)
        {
            if (this.Stream == null)
                return false;
            try
            {
                this.Stream.BeginWrite(data, offset, count, this.EndWrite, new KeyValuePair<byte[], int>(data, count - offset));
            }
            catch (Exception exception)
            {
                this.CloseInternal(new NetworkError(NetworkOperation.Write, exception));
                return false;
            }
            return true;
        }
public bool Write ( byte [ ] data , int offset , int count ) { if ( this . Stream == null ) return false ; try { this . Stream . BeginWrite ( data , offset , count , this . EndWrite , new KeyValuePair < byte [ ] , int > ( data , count - offset ) ) ; } catch ( Exception exception ) { this . CloseInternal ( new NetworkError ( NetworkOperation . Write , exception ) ) ; return false ; } return true ; }
Write an array of bytes to the client.
Write an array of bytes to the client .
// If the stream is dead we can't send anything. // Close the socket.
True if starting the write succeeded, otherwise false.
True if starting the write succeeded otherwise false .
data
byte[]
The data to write to the clienbt.
The data to write to the clienbt .
offset
int
The offset from the start of  to start writing.
The offset from the start of to start writing .
count
int
The maximum number of bytes to write.
The maximum number of bytes to write .