ADAM-3600 Linux下网口UDP通讯测试
1、测试环境
ADAM-3600的LAN1和公网服务器remote连接测试
2、UDP测试程序
hints.ai_family = AF_INET; /* Allow IPv4 */
hints.ai_flags = 0;// AI_PASSIVE;/* For wildcard IP address */
hints.ai_protocol = 0; /* Any protocol */
hints.ai_socktype = SOCK_DGRAM;
sprintf( buf, "data packet with ID %d", iter++ );
printf( "send to [%s:%s]: %s\n", argv[ 1 ], argv[ 2 ], buf );
sendto(
socket_descriptor,
buf,
sizeof( buf ),
0,
(struct sockaddr *) &address,
sizeof(address) );
通过LAN1向远程服务器发送数据:
3、远程服务器测试结果
Attachment: Your usergroup does not have permission to access attachments