def login(self,userid,passwd,regflag=0): #登入 channel=0 self.uid=userid imgid="0000000000000000" verifycode="000000" primsg=struct.pack(">32sLLL16s6s",mypub.get_md5(mypub.get_md5(passwd)),channel,6,regflag,imgid,verifycode); sendbuf=self.pack(103,userid,primsg); self.getsock().send(sendbuf) pass
def login(self, userid, passwd, regflag=0): #登入 channel = 0 self.uid = userid imgid = "0000000000000000" verifycode = "000000" primsg = struct.pack(">32sLLL16s6s", mypub.get_md5(mypub.get_md5(passwd)), channel, 6, regflag, imgid, verifycode) sendbuf = self.pack(103, userid, primsg) self.getsock().send(sendbuf) pass
def login(self,userid,passwd,regflag=0): #登入 primsg=struct.pack(">32sL",mypub.get_md5(str(passwd)),regflag ); #print mypub.bin2hex(primsg); sendbuf=self.pack(101,userid,primsg); self.get_socket().send(sendbuf) pass
def login(self, userid, passwd, regflag=0): self.set_userid(userid) primsg = struct.pack(">32sLLL16s6s", mypub.get_md5(passwd), regflag, 7, 0, " " * 16, " " * 6) sendbuf = self.pack_with_buf(103, primsg) self.getsock().send(sendbuf) pass
def login(self, userid, passwd, regflag=0): #登入 primsg = struct.pack(">32sL", mypub.get_md5(str(passwd)), regflag) #print mypub.bin2hex(primsg); sendbuf = self.pack(101, userid, primsg) self.get_socket().send(sendbuf) pass
def login(self,userid,passwd,regflag=0): self.set_userid(userid); primsg=struct.pack(">32sLLL16s6s", mypub.get_md5( passwd),regflag,7,0," "*16," "*6 ); sendbuf=self.pack_with_buf(103,primsg); self.getsock().send(sendbuf) pass
def login(self, userid, passwd, regflag=0): # 登入 primsg = struct.pack(">32sL", mypub.get_md5(passwd), regflag) sendbuf = self.pack(101, userid, primsg) self.get_socket().send(sendbuf) pass