Class UdpSender
Represents the sender of messages transfered via UDP protocol.
Представляет отправителя сообщений по протоколу UDP.
Namespace: Platform.Protocols.Udp
Assembly: Platform.Protocols.dll
Syntax
public class UdpSender : DisposableBase
Constructors
| Improve this Doc View SourceUdpSender(Int32)
Initializes a new UdpSender instance.
Declaration
public UdpSender(int port)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | port | A port.
|
UdpSender(IPAddress, Int32)
Initializes a new UdpSender instance.
Declaration
public UdpSender(IPAddress address, int port)
Parameters
| Type | Name | Description |
|---|---|---|
| IPAddress | address | A address.
|
| Int32 | port | A port.
|
UdpSender(IPEndPoint)
Initializes a new UdpSender instance.
Declaration
public UdpSender(IPEndPoint ipendpoint)
Parameters
| Type | Name | Description |
|---|---|---|
| IPEndPoint | ipendpoint | A ipendpoint.
|
UdpSender(String, Int32)
Initializes a new UdpSender instance.
Declaration
public UdpSender(string hostname, int port)
Parameters
| Type | Name | Description |
|---|---|---|
| String | hostname | A hostname.
|
| Int32 | port | A port.
|
Methods
| Improve this Doc View SourceDispose(Boolean, Boolean)
Disposes the manual.
Declaration
protected override void Dispose(bool manual, bool wasDisposed)
Parameters
| Type | Name | Description |
|---|---|---|
| Boolean | manual | The manual.
|
| Boolean | wasDisposed | The was disposed.
|
Send(String)
Sends the message.
Declaration
public int Send(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| String | message | The message.
|
Returns
| Type | Description |
|---|---|
| Int32 | The int
|