Есть такой вот отрезок кода
bytes_send=sendto(sock, &sms_length, sizeof(size_t), 0, &srvr_name,strlen(srvr_name.sa_data) + sizeof(srvr_name.sa_family));
if(bytes_send < sizeof(size_t)){
perror("Cannot write data to socket");
return 1;
}
printf("%d bytes send\n", bytes_send);
bytes_send=sendto(sock,argv[1],sms_length, 0, &srvr_name,strlen(srvr_name.sa_data) + sizeof(srvr_name.sa_family));
printf("%d bytes send\n", bytes_send);
if(bytes_send == -1){
perror("Cannot write data to socket");
return 1;
}
Cannot write data to socket:No such file or directory.