pull-in the IL protocol compatibility from branch
authorAleš Křenek <ljocha@ics.muni.cz>
Fri, 23 Sep 2005 11:42:11 +0000 (11:42 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Fri, 23 Sep 2005 11:42:11 +0000 (11:42 +0000)
(didn't get merged because of previsou errorneous commits)

org.glite.lb.server/src/request.c

index 3ad753b..a3288a4 100644 (file)
 #define UNUSED_VAR
 #endif
     
-/* XXX: is it OK to assume buf always contains the whole message? */
 int 
 handle_request(edg_wll_Context ctx,char *buf)
 {
-  char *event,*start = buf,y[1000];
-  int ret,x;
+  char *event;
+  int ret;
 
   edg_wll_ResetError(ctx);
 
-/* XXX: detect interlogger <= 1.1.1 */
-  ret = sscanf(buf,"%d %999s\n%d",&x,y,&x);
-  if (ret == 3) {
-       start = strchr(buf,'\n');
-       start++;
-  }
-
-  ret = decode_il_msg(&event, start);
+  ret = decode_il_msg(&event, buf);
   if(ret < 0) {
     edg_wll_SetError(ctx,EDG_WLL_IL_PROTO,"reading event string");
     return EDG_WLL_IL_PROTO;