Lines Matching refs:data
153 msg_level, msg_type, data = opt
154 if isinstance(data, int):
155 data = struct.pack("=I", data)
156 elif isinstance(data, ctypes.c_uint32):
157 data = struct.pack("=I", data.value)
158 elif not isinstance(data, str):
160 msg_level, msg_type, type(data)))
162 datalen = len(data)
166 msg_control += data + padding
178 data, buf = buf[:datalen], buf[padlen + datalen:]
182 data = InPktinfo(data)
184 data = struct.unpack("@I", data)[0]
188 data = In6Pktinfo(data)
190 err, source = cstruct.Read(data, SockExtendedErr)
193 data = (err, source)
195 data = struct.unpack("@I", data)[0]
199 msglist.append((cmsghdr.level, cmsghdr.type, data))
218 def Sendmsg(s, to, data, control, flags): argument
249 if data:
250 databuf = ctypes.create_string_buffer(data)
251 iov = Iovec((ctypes.addressof(databuf), len(data)))
328 data = buf.raw[:ret]
334 return data, addr, msglist
347 data = buf[:ret]
352 return data, addr