ソケットを介して long を送信する方法は? 受け取り方は?
サーバ:
long size;
f = fopen("file.txt","r");;
fseek(f,0,SEEK_END);
size = ftell(f);
rewind(f);
printf("Size: %ld Bytes\n",size);
/* send "size" with send method */
send(socket,???,???,0);
クライアント:
long size;
recv(socket,???,???,0);
助けてくれてありがとう。