Lines Matching refs:pkt
104 >>> pkt = dotu.pack(fcall='Tversion', args=args)
105 >>> len(pkt)
119 >>> struct.unpack('<IBHIHB', pkt)
130 >>> pkt = dotu.pack(fcall='Tversion', args=args)
131 >>> len(pkt)
137 >>> pkt == pkt2
146 >>> pkt == pkt2
169 pkt = protocol.plain.pack(fcall='Rerror',
173 pkt = proto.pack(fcall='Rversion', args={'tag': tag, 'msize': msize})
185 pkt = proto.pack_from(reply)
207 >>> pkt = None
211 ... pkt = plain.error(1, err)
213 >>> pkt[-len(utf8):] == utf8
216 >>> pkt == pkt2
223 >>> len(pkt)
250 >>> pkt = dotl.Rlink(12345)
251 >>> struct.unpack('<IBH', pkt)
282 >>> pkt = pkt[4:] # strip generated size
286 >>> d = plain.unpack_header(pkt[0:1], noerror=True)
290 >>> d = plain.unpack_header(pkt[0:2], noerror=True)
297 >>> plain.unpack_header(pkt[0:0]) # doctest: +IGNORE_EXCEPTION_DETAIL
304 >>> d = plain.unpack_header(pkt)
323 >>> plain.unpack(pkt) # doctest: +IGNORE_EXCEPTION_DETAIL
327 >>> dotl.unpack(pkt)
335 >>> plain.unpack(pkt, noerror=True) # doctest: +IGNORE_EXCEPTION_DETAIL
351 >>> dotl.unpack(pkt[0:1], noerror=True)
353 >>> dotl.unpack(pkt[0:2], noerror=True)
358 >>> dotl.unpack(pkt + b'x') # doctest: +IGNORE_EXCEPTION_DETAIL
362 >>> dotl.unpack(pkt + b'x', noerror=True)
415 >>> pkt = dotl.pack_dirent(dirent)
416 >>> len(pkt)
421 >>> newde, offset = dotl.unpack_dirent(pkt, 0)
446 # pkt = proto.pack(fcall=protocol.td.Tversion,
450 # pkt = proto.pack(fcall=protocol.td.Twrite,
453 # pkt = proto.pack(fcall=protocol.td.Twrite,
456 # pkt = proto.pack(fcall=protocol.td.Twrite,
689 pkt = packinfo.pack(self.auto_vars, self.conditions, data, rodata)
696 # outer data. The size is implied by len(pkt). There
701 data = _9p_data.header_pfod(size=4 + 1 + len(pkt), dsize=len(pkt),
702 fcall=fcall_code, data=pkt)
704 pkt = _9p_data.header_pack_seq.pack(data, empty)
705 return pkt