Go to advanced search

by zulihomevn
Mon Mar 16, 2020 3:58 am
Forum: C/C++
Topic: UDP Problem
Replies: 3
Views: 902

UDP Problem

I created a socket Code: Select all int rx_sock; struct sockaddr_in server, from; int UDP_Init(void) { rx_sock = socket(AF_INET, SOCK_DGRAM, 0); if (rx_sock < 0) { printf("socket create error\n"); return -1; } else { printf("socket created %d\n", rx_sock); } #if 1 server.sin_fami...

Go to advanced search