int transport(int src, int dst){
int totalCount = 0;
char buffer[1024];
while(1)
{
int readCount = read (src, buffer, 1024);
int writeCount = write(dst, buffer, readCount);
if(readCount <= 0){
break;
}
totalCount += writeCount;
}
return totalCount;
}
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。