# SendUDPNetworkMessage

## Description

Sends a network message created with CreateNetworkMessage to the specified remote IP and port. You must specify a UDP listener to use as the source IP and port. This function will delete the specified message ID.

## Definition

SendUDPNetworkMessage( listenerID, messageID, toIP, toPort )

void agk::SendUDPNetworkMessage( UINT listenerID, UINT messageID, const char* toIP, int toPort )

## Parameters

- listenerID - The ID of the listener to use as the source ip and port
- messageID - The ID of the network message to send
- toIP - The IP address to send the message to
- toPort - The port to send the message to