Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-hanna committed Aug 30, 2018
1 parent 24eb16b commit 8ccdd7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def listen(self):
self.process(self.q.get())
q.task_done()

def serve():
def serve(self):
host = c_char_p(config.ServerHost()).value
port = c_int(config.ServerPort()).value

Expand All @@ -158,12 +158,12 @@ def __init__(self, host, port, q):
self.port = port
self.q = q

def run():
def run(self):
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.bind((self.host, self.port))
server.listen(1) # max backlog of connections

print("Listening on {0}:{1}".format(bind_ip, bind_port))
print("Listening on {0}:{1}".format(self.host, self.port))


def handle_conn(conn):
Expand Down

0 comments on commit 8ccdd7a

Please sign in to comment.