Click or drag to resize
UdpNetworkClient Class
UDP network client. Supports both IPv4 and IPv6.
Inheritance Hierarchy
SystemObject
  StreamCoders.NetworkUdpNetworkClient

Namespace: StreamCoders.Network
Assembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax
public class UdpNetworkClient : INetworkClient

The UdpNetworkClient type exposes the following members.

Constructors
  NameDescription
Public methodUdpNetworkClient
Initializes a new instance of the UdpNetworkClient class
Top
Properties
  NameDescription
Public propertyLocalEndPoint
Local endpoint the socket will be bound to.
Public propertyRemoteEndPoint
Remote endpoint of the socket.
Top
Methods
  NameDescription
Public methodBind
Associates socket with local endpoint.
Public methodClose
Closes underlying socket.
Public methodFinishInit
Finishes initialization by starting receive chain.
Public methodSend(ArraySegmentByte)
Sends an ArraySegment to the remote endpoint.
Public methodSend(Byte)
Sends a byte array to the remote endpoint.
Public methodSend(String)
Sends a string to the remote endpoint.
Public methodSend(OffsetBufferByte)
Sends an OffsetBuffer to the remote endpoint.
Public methodSimpleInit
Calls StartInit, Bind and FinishInit in one run.
Public methodStartInit
Starts initialization by creating underlying socket.
Public methodStartReceiveChain
Starts the internal receive chain. This function should only be called if FinishInit(false) was called, otherwise the receive chain is already started.
Top
Events
  NameDescription
Public eventOnError
Event for all listeners interested in OnError events.
Public eventOnReceive
Event for all listeners interested in OnReceive events.
Public eventOnSend
Event for all listeners interested in OnSend events.
Top
Fields
  NameDescription
Public fieldReceiveBufferSize
SizeIncludingHeader of the receive buffer.
Public fieldState
The state of the client.
Top
Extension Methods
  NameDescription
Public Extension MethodCopyOverloaded.
Creates a copy of the object.
(Defined by ObjectExtensions.)
Public Extension MethodCopy(Object)Overloaded.
Creates a deep copy of the object using the supplied object as a target for the copy operation.
(Defined by ObjectExtensions.)
Top
See Also