Skip to content

Overhaul stats: Add announced Peer to UDP core announce event #1384

@josecelano

Description

@josecelano

Depends on: #1341
Relates to: #1376

IMPORTANT: This has to be implemented after #1341.

I'm refactoring events to include more metadata:

pub enum Event {
    UdpConnect { context: ConnectionContext },
    UdpAnnounce { context: ConnectionContext },
    UdpScrape { context: ConnectionContext },
}

#[derive(Debug, PartialEq, Eq)]
pub struct ConnectionContext {
    client_socket_addr: SocketAddr,
    server_socket_addr: SocketAddr,
}

It would also be convenient to include information about the announce request, in the event, like the peer.

Read this for more information about how to include the announced peer data.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions