I’m using QNX 6.3 on Win XP host, target is Freescale lite5200b PPC. Trying to write a simple program that will send a fixed message to another device on a small network. The significant lines of code are “sfd=socket(AF_INET, SOCK_STREAM, 0)”, “connect(sfd, (struct sockaddr *) &sa_in, sizeof(sa_in)”, and “send_bytes = send(sfd, packet, packet_data_length, 0)” which should send the message. Error checking is done after each step, with no errors being found. According to ‘send’, a total of 40 bytes are sent. But according to the destination device, nothing is received. A packet sniffer (operates in promiscuous mode) confirms nothing was sent. Through the target’s console, I can ping the successfully destination device. Sniffer detects other activity of the target, so it must be my code (I’ll be you don’t read that too often!)
Any thoughts as to where I may be going wrong? Thanks!