MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _processNMBSessionPacket

Method _processNMBSessionPacket

pager_lib/nmb/base.py:73–84  ·  view source on GitHub ↗
(self, packet)

Source from the content-addressed store, hash-verified

71 #
72
73 def _processNMBSessionPacket(self, packet):
74 if packet.type == SESSION_MESSAGE:
75 self.onNMBSessionMessage(packet.flags, packet.data)
76 elif packet.type == POSITIVE_SESSION_RESPONSE:
77 self.onNMBSessionOK()
78 elif packet.type == NEGATIVE_SESSION_RESPONSE:
79 self.onNMBSessionFailed()
80 elif packet.type == SESSION_KEEPALIVE:
81 # Discard keepalive packets - [RFC1002]: 5.2.2.1
82 pass
83 else:
84 self.log.warning('Unrecognized NMB session type: 0x%02x', packet.type)
85
86 def _sendNMBPacket_NetBIOS(self, packet_type, data):
87 length = len(data)

Callers 1

feedDataMethod · 0.95

Calls 4

onNMBSessionMessageMethod · 0.95
onNMBSessionOKMethod · 0.95
onNMBSessionFailedMethod · 0.95
warningMethod · 0.80

Tested by

no test coverage detected