Skip to content

UdpClient broadcast message problem  #318

Open
@serdar-sahin

Description

@serdar-sahin

Add the following line under the Connect method in UdpClient.cs.

Socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, true);

Usage;

`IPEndPoint ipEndPoint = new IPEndPoint(IPAddress.Broadcast, 3333);
var client = new PluginUdpClient(ipEndPoint);

client.Connect();
client.Send("hello");`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions