Purpose of the new feature
Sends a sting to defined address and port as a UDP datagram
int Str2UDP <ip address>:<ip port> <string>
<string> Null terminated string to be sent
<ip address>, required; IP address of machine that will receive the datagram
<ip port>, required; Port on destination machine
0 - UDP packet sent
1 - String too long
2 - <ip address> not recognised/undeliverable
MaxStringSize = 1024
The resulting code must be executeable from the linux shell.
An implementation must not leak memory.
Execution time, although not important, is not critical.
Explanation of Requirements:
This code for use in a an asterisk server. As such it will be executed frequently, and the asterisk server should not require rebooting. In this context it is vitally important that this application should not leak memory. We are willing to sacrifice execution time for reliability. Scripted languages such as python are acceptable.
I have huge experience in developing c/c++ application. I can do this easily on Linux environment using c or c++ and socket programming. I can assure you good reliable code.