Revision 82a24877

View differences:

code/server/receive.c
25 25
volatile int buffer_last = 0;
26 26
// first unread byte in buffer
27 27
volatile int buffer_first = 0;
28

  
29 28
char *server_hostname;
30 29
char *ip_addr;
31 30
struct in_addr server_addr;
......
206 205
    //printf("sending to server\n");
207 206
    if (send(sock, send_buf, len+4, 0) != len+4) {
208 207
            printf("Mismatch in number of sent bytes");
209
            close(sock);
210 208
            return;
211 209
    }
212 210
    close(sock);

Also available in: Unified diff