[Type] // Commit Type: Feature / Bugfix / Enhancement
[Module] // Module Name - (Main / Sub)
[Priority] // Importance : Critical / Major / Minor
[CQ#] // CQ Issue Number
[Redmine#] // Redmine Isuue Number
[Problem] // Problem Description
[Cause] // Cause Description
[Solution] // Solution Description
[TestCase] // Executed the test-target (How to)
if((listen_s = socket(AF_INET, SOCK_DGRAM, 0)) < 0)
{
ERR("Create listen socket error: ");
+ perror("socket");
goto cleanup;
}
INFO( "bind port[127.0.0.1:%d/udp] for sensor server in host \n", port);
if(bind(listen_s, (struct sockaddr *) &servaddr, sizeof(servaddr)) < 0)
{
- ERR( "bind fail [%d:%s] \n", errno, strerror(errno));
ERR("bind error: ");
+ perror("bind");
goto cleanup;
}