back soft

مطالب مرتبط با «how to send file using socket in c» در back soft | نویسنده: استخدام کار

How to send a file with socket c++

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...

ادامه مطلب

برچسب‌های مرتبط

how to send a file through socket in c | how to send files through socket connection in java | how to send a file over a socket in c | how to send file in c socket | how to transfer a file using sockets in c | how to send file using socket in c#