Skip to content

Implement internal/broadcaster/send.go (fan‐out UDP) #11

@justintulloch

Description

@justintulloch

• Maintain an in‐memory map clients map[string]*net.UDPAddr.

• Provide RegisterClient(clientID string, addr *net.UDPAddr) (initially stubbed/hardcoded).

• In a loop, listen on UDP port :50000. For each incoming Gob‐encoded WorldState:

– Decode it.

– For each client in clients, re‐encode the same buffer (no changes) and WriteToUDP to their address.

• Expose Prometheus counter broadcaster_packets_sent_total and gauge broadcaster_client_count.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendServer-side logic, APIs, and core business functionalitymetricsInstrumentation, telemetry, and collection of usage or performance dataserviceMicroservice implementations or service–service integration work

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions