version 1.1.1.1, 1999/10/08 02:12:05 |
version 1.2, 1999/10/30 02:22:16 |
|
|
|
/* $OpenXM$ */ |
#include <stdio.h> |
#include <stdio.h> |
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/socket.h> |
#include <sys/socket.h> |
Line 251 socketConnectWithPass(char *servername,int port,char * |
|
Line 252 socketConnectWithPass(char *servername,int port,char * |
|
int m; |
int m; |
fd = socketConnect(servername,port); |
fd = socketConnect(servername,port); |
if (fd >= 0) { |
if (fd >= 0) { |
m = write(fd,pass,strlen(pass)); |
m = write(fd,pass,strlen(pass)+1); |
if (m != strlen(pass)) { |
if (m != strlen(pass)+1) { |
fprintf(TcpioError,"Fail to send password to fd=%d.\n",fd); |
fprintf(TcpioError,"Fail to send password to fd=%d.\n",fd); |
return(-1); |
return(-1); |
} |
} |