Project

General

Profile

Revision 408

added asleep to wl_do loop

View differences:

ColonetServer.cpp
145 145
  if (type == COLONET_RESPONSE) {
146 146
    printf("response\n");
147 147

  
148
    /*
149
    //Eugene's code
150
    char buffer[WRITE_BUFFER_SIZE];
151

  
152
    int value = (int)(data[0]);
153
    snprintf(buffer, WRITE_BUFFER_SIZE, "%d\n", value);
154

  
155
    int buflen = strlen(buffer);
156
    */
157

  
158 148
    //Greg's code
159 149
    char * buffer = (char *) &(data[5]);
160 150
    int buflen = strlen(buffer);
......
218 208

  
219 209
  //get a socket fd
220 210
  if ((listen_socket = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
221
    printf("\tThere was an error creating  socket\n");
211
    printf("\tThere was an error creating socket\n");
222 212
    return -1;
223 213
  }
224 214

  

Also available in: Unified diff