BF2Statistics.Gamespy.Net.GamespyTcpStream.SendAsync C# (CSharp) Method

SendAsync() public method

Writes a message to the client stream asynchronously
public SendAsync ( byte message ) : void
message byte The complete message to be sent to the client
return void
        public void SendAsync(byte[] message)
        {
            // Make sure the socket is still open
            if (SocketClosed) return;

            // Create a lock, so we don't add a message while the old one is being cleared
            lock (_lockObj)
                SendMessage.AddRange(message);

            // Send if we aren't already in the middle of an Async send
            if (!WaitingOnAsync) ProcessSend();
        }

Same methods

GamespyTcpStream::SendAsync ( string message ) : void