Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Rammbock/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def clear_message_streams(self):
for server in self._servers:
server.empty()

def new_protocol(self, protocol_name):
def new_protocol(self, protocol_name, little_endian=False):
"""Start defining a new protocol template.

All messages sent and received from a connection that uses a protocol
Expand All @@ -167,7 +167,7 @@ def new_protocol(self, protocol_name):
raise Exception('Can not start a new protocol definition in middle of old.')
if protocol_name in self._protocols:
raise Exception('Protocol %s already defined' % protocol_name)
self._init_new_message_stack(Protocol(protocol_name, library=self))
self._init_new_message_stack(Protocol(protocol_name, little_endian, library=self))
self._protocol_in_progress = True

def end_protocol(self):
Expand Down