[BACK]Return to sm1Socket.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / kan96xx / plugin

Diff for /OpenXM/src/kan96xx/plugin/sm1Socket.c between version 1.10 and 1.12

version 1.10, 2002/10/22 00:53:51 version 1.12, 2002/10/24 01:29:00
Line 1 
Line 1 
 /* $OpenXM: OpenXM/src/kan96xx/plugin/sm1Socket.c,v 1.9 2002/10/21 01:59:16 takayama Exp $ */  /* $OpenXM: OpenXM/src/kan96xx/plugin/sm1Socket.c,v 1.11 2002/10/24 01:05:05 takayama Exp $ */
 /* msg0s.c */  /* msg0s.c */
 #include <stdio.h>  #include <stdio.h>
 #include <sys/types.h>  #include <sys/types.h>
Line 641  struct object Kplugin_sm1Socket(char *key,struct objec
Line 641  struct object Kplugin_sm1Socket(char *key,struct objec
     robj = KsocketRead(obj);      robj = KsocketRead(obj);
   }else if (strcmp(key,"readHTTP") == 0) {    }else if (strcmp(key,"readHTTP") == 0) {
     robj = KsocketReadHTTP(obj);      robj = KsocketReadHTTP(obj);
     }else if (strcmp(key,"gethostname") == 0) {
       robj = KsocketGetHostName();
   }else if (strcmp(key,"write") == 0) {    }else if (strcmp(key,"write") == 0) {
     robj = KsocketWrite(obj);      robj = KsocketWrite(obj);
   }else if (strcmp(key,"read") == 0) {    }else if (strcmp(key,"read") == 0) {
Line 697  static int getReceivedContentLength(char *s) {
Line 699  static int getReceivedContentLength(char *s) {
 }  }
   
   
   struct object KsocketGetHostName(void) {
     char name[1024];
     char *s;
     struct object rob = NullObject;
     if (gethostname(name,1023) != 0) {
       return rob;
     }
     s = (char *)GC_malloc(sizeof(char)*(strlen(name)+2));
     if (s == (char *)NULL) errorMsg1s("Out of Memory.");
     strcpy(s,name);
     return(KpoString(s));
   }
   
   
   

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.12

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>