System.Data.SqlClient.SNI.SNITCPHandle.Send C# (CSharp) Method

Send() public method

Send a packet synchronously
public Send ( SNIPacket packet ) : uint
packet SNIPacket SNI packet
return uint
        public override uint Send(SNIPacket packet)
        {
            lock (this)
            {
                try
                {
                    packet.WriteToStream(_stream);
                    return TdsEnums.SNI_SUCCESS;
                }
                catch (ObjectDisposedException ode)
                {
                    return ReportTcpSNIError(ode);
                }
                catch (SocketException se)
                {
                    return ReportTcpSNIError(se);
                }
                catch (IOException ioe)
                {
                    return ReportTcpSNIError(ioe);
                }
            }
        }