mixer needs to send port as unsigned short

This commit is contained in:
Stephen Birarda 2013-02-18 09:39:52 -08:00
parent 612662c475
commit c3c0793ddc
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ int simulate_on = 1;
const int MAX_PACKET_SIZE = 1500;
char DOMAIN_HOSTNAME[] = "highfidelity.below92.com";
char DOMAIN_IP[100] = "192.168.1.47"; // IP Address will be used first if not empty string
char DOMAIN_IP[100] = ""; // IP Address will be used first if not empty string
const int DOMAINSERVER_PORT = 40102;
UDPSocket agentSocket(AGENT_UDP_PORT);

View file

@ -229,7 +229,7 @@ void *reportAliveToDS(void *args) {
while (true) {
gettimeofday(&lastSend, NULL);
sprintf(output, "%c %f,%f,%f,54.241.92.53 %hd", 'M', 0.f, 0.f, 0.f, MIXER_LISTEN_PORT);
sprintf(output, "%c %f,%f,%f,54.241.92.53 %hd", 'M', 0.f, 0.f, 0.f, (unsigned short)MIXER_LISTEN_PORT);
int packetSize = strlen(output);
audioSocket.send(DOMAIN_IP, DOMAINSERVER_PORT, output, packetSize);