Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(11)  |  Call(11)  |  Derive(0)  |  Import(0)
Send data with trid to socket.
       
@param cmd Command of Protocol
@param trid Transaction ID
@param data Data to send.
@param sockfd Socket file descriptor.

src/c/r/crossmess-HEAD/msnp/Msnp15.py   CrossMess(Download)
        sockfd = conn.getSockfd()
 
        conn.sendDataTrid("VER", self.getTrid(), None, "MSNP15", sockfd)
        conn.recvData(sockfd)
 
        conn.sendDataTrid("CVR", self.getTrid(), None, \
        conn.recvData(sockfd)
 
        conn.sendDataTrid("USR", self.getTrid(), None, "SSO I %s" % \
                self._username, sockfd)
 
        self._sockfd = conn.getSockfd()
 
        conn.sendDataTrid("VER", self.getTrid(), None, "MSNP15", self._sockfd)
        conn.recvData(self._sockfd)
 
 
        conn.sendDataTrid("CVR", self.getTrid(), None, \