Skip to content

DNS support for UDP transport #66

@captn3m0

Description

@captn3m0

Currently, the code does not resolve domain names for UDP transport:

public function flush($udp_message)
{
// Non - Blocking UDP I/O - Use IP Addresses!
$socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
socket_set_nonblock($socket);
socket_sendto($socket, $udp_message, strlen($udp_message), 0, $this->host, $this->port);
socket_close($socket);
}

I understand the need (keep this entirely non-blocking), but was wondering what would be the right approach for this to be added (willing to file a PR, but want to make sure it can be merged before I go ahead).

/cc @jitendra-1217

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions