Revision 6f256447 tests/echoServer.c

View differences:

tests/echoServer.c
129 129
      unsigned char msgtype = 12;
130 130
      int connectionID = 0;
131 131
      //strcpy(buffer, "Message for peer 2 \n");
132
      send_params sParams;
133 132
  
134
      mlSendData(connectionID,buffer,size,msgtype,&sParams);
133
      mlSendData(connectionID,buffer,size,msgtype,NULL);
135 134

  
136 135
}
137 136

  
......
166 165
  int bufsize = sizeof(buf);
167 166
  unsigned char msgtype = 13;
168 167
  int connectionID = 0;
169
  send_params sParams;
170 168

  
171 169
  fprintf(stderr,"The buffersize is %i\n",bufsize);
172 170
  if (result != lSize){ fprintf(stderr,"Could not read file!\n");  }
173 171
  else { printf("The size of the file is %ld \n",lSize); }
174 172
  
175
  mlSendData(connectionID,buf,(int)lSize,msgtype,&sParams);
173
  mlSendData(connectionID,buf,(int)lSize,msgtype,NULL);
176 174

  
177 175
}
178 176

  
......
217 215
  */
218 216
void open_connection_cb(int fd, short event,void *arg){
219 217

  
220
  int con_id = mlOpenConnection(rm_socketID,&receive_conn_cb,&connection_argument); ///< try to open a connection to another peer.
218
  send_params defaultSendParams;
219
  int con_id = mlOpenConnection(rm_socketID,&receive_conn_cb,&connection_argument, defaultSendParams); ///< try to open a connection to another peer.
221 220
  ///If the result is zero the event is resheduled into the event list.
222 221
  if(con_id < 0){
223 222

  
......
353 352
    char buffer[size];
354 353
    memset(buffer,'a',size);
355 354
    int connectionID = 0;
356
    send_params sParams;
357 355

  
358
    mlSendData(connectionID,buffer,size,msgtype,&sParams);
356
    mlSendData(connectionID,buffer,size,msgtype,NULL);
359 357

  
360 358
  }
361 359
  

Also available in: Unified diff