This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 int i = 0; | |
114 int received = 0; | |
115 int sizenow = 4096; | |
116 int sizebefore = sizenow; | |
117 char *buffer = (char *) malloc(sizenow); | |
118 char *buf = buffer; | |
119 while ((received = read(sock, buf, 4096))>0) | |
120 { | |
121 i = i + received; | |
122 sizebefore = sizenow; |
OlderNewer