FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add next_sequnce method for default_client by PaulWasTaken · Pull Request #221 · python-smpplib/python-smpplib · GitHub

Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
5 changes: 5 additions & 0 deletions smpplib/pdu.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ class default_client(object):
"""Dummy client"""
sequence = 0

def next_sequence(self):
current_sequence = self.sequence
self.sequence += 1
return current_sequence


class PDU(object):
"""PDU class"""
Expand Down

Back | FazBrowse Home | New Git URL