projects/Extant_Networking/NetStreamConnection.cs
/// <summary>
/// Send a packet to this client.
/// </summary>
Send a packet to this client.
Send a packet to this client .
public void Send(NetPacket p)
        {
            if (_isClosed)
                return;
            try
            {
                lock (_stream.Lock)
                {
                    _outboundPackets.Enqueue(p);
                    BeginSend();
                }
            }
            catch (Exception e)
            {
                Close(NetConnectionClosingReason.UnknownException, e);
            }
        }
public void Send ( NetPacket p ) { if ( _isClosed ) return ; try { lock ( _stream . Lock ) { _outboundPackets . Enqueue ( p ) ; BeginSend ( ) ; } } catch ( Exception e ) { Close ( NetConnectionClosingReason . UnknownException , e ) ; } }
Send a packet to this client.
Send a packet to this client .
p
NetPacket