Class RtpIceChannel.IceTcpReceiver
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SIPSorcery.Net
Assembly: SIPSorcery.dll
Syntax
public class IceTcpReceiver : UdpReceiver
Constructors
| Improve this Doc View SourceIceTcpReceiver(Socket, Int32)
Declaration
public IceTcpReceiver(Socket socket, int mtu = 6000)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Net.Sockets.Socket | socket | |
| System.Int32 | mtu |
Fields
| Improve this Doc View Sourcem_recvOffset
Declaration
protected int m_recvOffset
Field Value
| Type | Description |
|---|---|
| System.Int32 |
REVEIVE_TCP_BUFFER_SIZE
Declaration
protected const int REVEIVE_TCP_BUFFER_SIZE = 6000
Field Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
| Improve this Doc View SourceBeginReceiveFrom()
Starts the receive. This method returns immediately. An event will be fired in the corresponding "End" event to return any data received.
Declaration
public override void BeginReceiveFrom()
Overrides
| Improve this Doc View SourceClose(String)
Closes the socket and stops any new receives from being initiated.
Declaration
public override void Close(string reason)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | reason |
Overrides
| Improve this Doc View SourceEndReceiveFrom(IAsyncResult)
Handler for end of the begin receive call.
Declaration
protected override void EndReceiveFrom(IAsyncResult ar)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IAsyncResult | ar | Contains the results of the receive. |
Overrides
| Improve this Doc View SourceProcessRawBuffer(Int32, IPEndPoint)
Declaration
protected virtual int ProcessRawBuffer(int bytesRead, IPEndPoint remoteEP)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | bytesRead | |
| System.Net.IPEndPoint | remoteEP |
Returns
| Type | Description |
|---|---|
| System.Int32 |