def recvfrom(self):
if self.state.SHUTDOWN:
raise err.Error(errno.ESHUTDOWN)
try:
rcvd_pdu = super(LogicalDataLink, self).recv()
except IndexError:
raise err.Error(errno.EPIPE)
return (rcvd_pdu.data, rcvd_pdu.ssap) if rcvd_pdu else (None, None)
评论列表
文章目录