Vote count: 0 i got some project that the idea is the sender send the file.txt to the receiver on linux c++. i have implemented the function explain below. the problem is if the sender send a file with 1638 number of lines the receiver can't properly write the file. sender.cpp int Socket,n; int t; struct sockaddr_in serv,client; char *buffer; int size, size1= 0; char cisi[10]; void socketting(){ Socket = socket(AF_INET,SOCK_DGRAM,IPPROTO_UDP); serv.sin_family = AF_INET; serv.sin_port = htons(41); serv.sin_addr.s_addr = inet_addr("127.0.0.1"); socklen_t l = sizeof(client); socklen_t m = sizeof(serv); } int main (){ socketting(); while(1){ ifstream is ; cek: is.open("iptabless.txt", ios::in|io...
ادامه مطلب