SENA HD132x Series User Manual
Page 53
HD132x Series User Manual
53
recvfrom(sock,test_buff,250,0,(LPSOCKADDR)&addrFrom,&nAddrFromLen);
if (byte_received==SOCKET_ERROR)
{
printf("\n Socket error program terminated..\n");
exit(1);
}
memcpy(&inFrom, &addrFrom.sin_addr,4);
// Calculate date & time
_strdate( dbuffer );
printf( "\n Info. was notified on %s ", dbuffer );
_strtime( tbuffer );
printf( "%s \n", tbuffer );
// Decode the incoming datagram
printf("\n from %s \n\n MAC address: " , inet_ntoa(inFrom) );
for(i=2; i<8; i++)
printf("%2x " ,(unsigned char)test_buff[i]);
printf("\n port # :");
for(i=8;i<10;i++)
printf("%3x",(unsigned char)test_buff[i]);
printf(" \n IP address :");
for(i=10;i<14;i++)
printf(" %3d ",(unsigned char)test_buff[i]);
printf("\n \n \n \n");
}
- Parani-ESD100-110-200-210 (56 pages)
- HD1300 (36 pages)
- Parani-SD1000 (60 pages)
- Rhio232 (76 pages)
- Parani-UD100 (26 pages)
- Parani-UD100 (27 pages)
- ProBee-ZE10 (101 pages)
- ProBee-ZS10 (76 pages)
- Parani-MSP100 (73 pages)
- Rhio10 (99 pages)
- UPSLink100 (54 pages)
- Parani100 (69 pages)
- PS810 (110 pages)
- HD1100 (40 pages)
- PS210W (104 pages)
- LS100W (50 pages)
- Parani-BCD100 (22 pages)
- ProBee-ZU10 (69 pages)
- Parani-SD1100 (53 pages)
- ProBee-ZE20S (102 pages)
- Parani-SD200L (46 pages)
- Parani-SD100-200 (50 pages)
- Parani-SD1000U (49 pages)
- Parani-BCD110 (65 pages)
- Parani10 (52 pages)
- Parani-BCD110V3 (85 pages)
- Device Server and Serial_IP Application Guide (26 pages)
- NEMO10-SK (54 pages)
- STS Series (131 pages)
- HelloDevice UniversalComm (13 pages)
- LS110 (66 pages)
- ProBee-ZE20S-SEME (118 pages)
- ProBee-ZE20S-HAOL (95 pages)
- Promi-ESD02 (63 pages)
- Promi-MSP Quick Install (9 pages)
- HD1200 (53 pages)
- PS400 (68 pages)
- Serial_IPTM Redirector 4.3 (84 pages)
- Promi-MSP User Guide (73 pages)
- LS100 (48 pages)
- LS100M-SK (48 pages)
- DirectPort UPCI (20 pages)
- Parani-BCD110-210 (71 pages)
- Parani-ESD100V2-110V2 (61 pages)