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

All Samples(9)  |  Call(7)  |  Derive(0)  |  Import(2)

src/d/i/digsby-HEAD/digsby/src/oscar/rendezvous/chat.py   digsby(Download)
from oscar.rendezvous.rendezvous import rdv_snac, rdv_types, rendezvous_tlvs as rdv_tlvs
from oscar import capabilities
from oscar.OscarUtil import tlv, s_tflv
import oscar
from util import callsback
    data = ''.join([
        tlv(0x0a, 2, 1),
        tlv(0x0c, message),
        tlv(rdv_tlvs.extended_data, xdata)])

src/d/i/digsby-HEAD/digsby/src/oscar/rendezvous/peer.py   digsby(Download)
        info('sending RDV %s', type)
        header = rendezvous_header(type, self.cookie, self.capability)
        self.channel2( oscar.OscarUtil.tlv(0x05, header + data ) )
    def send_ch2request(self, reqnum, port, client_ip, proxy = None, message = None, extratlvs=[]):

src/d/i/digsby-HEAD/digsby/src/oscar/rendezvous/proxy.py   digsby(Download)
from util import Storage, to_hex
from util.packable import Packable
import struct
import oscar.capabilities as capabilities
from oscar.OscarUtil import tlv
# (sent along with proxy packets)
SENDFILE = capabilities.by_name['file_xfer']
_send_file_tlv = tlv(0x01, SENDFILE)
def make_proxy_init(sn, cookie, port=None):

src/d/i/digsby-HEAD/digsby/src/oscar/rendezvous/rendezvous.py   digsby(Download)
    header = rendezvous_header(type, cookie, capability)
    rendezvous_data = oscar.OscarUtil.tlv(0x05, header + data)
    return oscar.snac.x04_x06(screenname, cookie, 2, rendezvous_data)