--- nfo/patches/w2hfax/full/hfaxlib/hfaxlib.py 2002/11/11 15:06:11 1.1 +++ nfo/patches/w2hfax/full/hfaxlib/hfaxlib.py 2002/11/11 15:40:32 1.2 @@ -40,7 +40,7 @@ self.pw=pw self.s=socket(AF_INET,SOCK_STREAM) try: - self.s.connect(host,self.port) + self.s.connect((host,self.port)) self.sf=self.s.makefile("rw") line=self.readline() self.writeline("USER " + user + "\n") @@ -107,7 +107,7 @@ addr=a1 + "." + a2 + "." + a3 + "." + a4 port=string.atoi(p1)*256 + string.atoi(p2) self.d=socket(AF_INET,SOCK_STREAM) - self.d.connect(addr,port) + self.d.connect((addr,port)) self.df=self.d.makefile() self.writeline("list "+folder+"\n") fdata="" @@ -130,7 +130,7 @@ addr=a1 + "." + a2 + "." + a3 + "." + a4 port=string.atoi(p1)*256 + string.atoi(p2) self.d=socket(AF_INET,SOCK_STREAM) - self.d.connect(addr,port) + self.d.connect((addr,port)) self.df=self.d.makefile("w") self.writeline("STOT\n") @@ -156,7 +156,7 @@ addr=a1 + "." + a2 + "." + a3 + "." + a4 port=string.atoi(p1) * 256 + string.atoi(p2) self.d=socket(AF_INET,SOCK_STREAM) - self.d.connect(addr,port) + self.d.connect((addr,port)) self.df=self.d.makefile("rb") self.writeline("RETR " + filename + "\n")