title: receive SMS using python and python-smpp
body: <p>I'm a newbie in SMPP but I need to simulate traffic over the SMPP protocol. I have found the tutorial how to send SMS using smpp lib from <a href="http://fosshelp.blogspot.com/2014/01/python-howto-send-sms-using-smpp.html" rel="nofollow noreferrer">Python How to Send SMS using SMPP Protocol</a></p>
  
  <p>I'm trying to write a receiver,but I am unable to get it to work. Please help.
  My code is:</p>
  
  <pre><code> import smpplib
  
  
  class ClientCl():
      client=None
      def receive_SMS(self):
          client=smpplib.client.Client('localhost',1000)
  
          try:
              client.connect()          
              client.bind_receiver("sysID","login","password")
              sms=client.get_message()
              print(sms)
  
          except : 
              print("boom! nothing works")           
              pass
  
  
  sms_getter=ClientCl.receive_SMS
  </code></pre>