Skip to content

Commit ca9eb06

Browse files
author
Kirill Kirsanov
committed
async work
1 parent 75a2803 commit ca9eb06

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

smpplib/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import struct
2727
import binascii
2828
import logging
29+
import threading
2930

3031
from . import smpp
3132
from . import exceptions
@@ -68,6 +69,7 @@ def __init__(self, host, port, timeout=5, sequence_generator=None):
6869
"""Initialize"""
6970

7071
self.host = host
72+
self.lock = threading.Lock()
7173
self.port = int(port)
7274
self._socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
7375
self._socket.settimeout(timeout)

smpplib/pdu.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,3 +284,5 @@ def generate(self):
284284
#ok = b'00000010800000150000000000000001'
285285
# Тест
286286
#test_rur = b'0000006200000005000000002d9e68ce000101373935333134393834383600000131353931233137383838303237000300000000000008000804220435044104421383000200000202000ca037393034333439303030300204000200200501000123'
287+
288+
#id:2108317357 sub:001 dlvrd:001 submit date:1611081450 done date:1611081450 stat:DELIVRD err:000 text:<unprintable_text>

0 commit comments

Comments
 (0)