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

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)
Receive the data from the socket.
    
Return the data received into buffer.

@param sockfd Socket file descriptor.
@return Buffer with data received from socket.

# TODO: Improve algorithm to optimize.

src/c/r/crossmess-HEAD/msnp/Msnp15.py   CrossMess(Download)
 
        conn.sendDataTrid("VER", self.getTrid(), None, "MSNP15", sockfd)
        conn.recvData(sockfd)
 
        conn.sendDataTrid("CVR", self.getTrid(), None, \
                "0x0416 winnt 5.1 i386 MSNMSGR 8.1.0178 msmsgs %s" % \
                self._username, sockfd)
        conn.recvData(sockfd)
 
        conn.sendDataTrid("VER", self.getTrid(), None, "MSNP15", self._sockfd)
        conn.recvData(self._sockfd)
 
 
        conn.sendDataTrid("CVR", self.getTrid(), None, \
                "0x0416 winnt 5.1 i386 MSNMSGR 8.1.0178 msmsgs %s" % \
                self._username, self._sockfd)
        conn.recvData(self._sockfd)
 
        gcf = conn.recvData(self._sockfd).split()[2]
        sso = conn.recvData(self._sockfd)[int(gcf):]
        (policy, nonce) = (sso.split()[4], sso.split()[5])