[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.20 and 1.22

version 1.20, 2005/07/03 11:08:54 version 1.22, 2020/10/06 11:33:47
Line 1 
Line 1 
 /* $OpenXM: OpenXM/src/kan96xx/plugin/sm1Socket.c,v 1.19 2005/06/16 05:07:24 takayama Exp $ */  /* $OpenXM: OpenXM/src/kan96xx/plugin/sm1Socket.c,v 1.21 2015/10/10 11:29:46 takayama Exp $ */
 /* msg0s.c */  /* msg0s.c */
 #include <stdio.h>  #include <stdio.h>
 #include <string.h>  #include <string.h>
Line 8 
Line 8 
 #include <netinet/in.h>  #include <netinet/in.h>
 #include <netdb.h>  #include <netdb.h>
 #include <errno.h>  #include <errno.h>
   #include <stdlib.h>
   #include <unistd.h>
   
   
 #include "datatype.h"  #include "datatype.h"
 #include "stackm.h"  #include "stackm.h"
 #include "extern.h"  #include "extern.h"
Line 148  struct object KsocketConnect(struct object obj) {
Line 149  struct object KsocketConnect(struct object obj) {
     perror("socket"); errorMsg1s("socket allocation is failed.\n");      perror("socket"); errorMsg1s("socket allocation is failed.\n");
   }    }
   if (!Quiet) {    if (!Quiet) {
     fprintf(stderr,"Trying to connect port %d, ip=%x\n",ntohs(server.sin_port),server.sin_addr);      fprintf(stderr,"Trying to connect port %d, ip=%lx\n",ntohs(server.sin_port),(long) server.sin_addr.s_addr);
   }    }
   if (connect(socketid,(struct sockaddr *)&server,sizeof(server)) == -1) {    if (connect(socketid,(struct sockaddr *)&server,sizeof(server)) == -1) {
     perror("connect"); errorMsg1s("cannot connect");      perror("connect"); errorMsg1s("cannot connect");

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.22

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