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

Commit 8ccdd7a

Browse files
committed
bug fixes
1 parent 24eb16b commit 8ccdd7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def listen(self):
131131
self.process(self.q.get())
132132
q.task_done()
133133

134-
def serve():
134+
def serve(self):
135135
host = c_char_p(config.ServerHost()).value
136136
port = c_int(config.ServerPort()).value
137137

@@ -158,12 +158,12 @@ def __init__(self, host, port, q):
158158
self.port = port
159159
self.q = q
160160

161-
def run():
161+
def run(self):
162162
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
163163
server.bind((self.host, self.port))
164164
server.listen(1) # max backlog of connections
165165

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

168168

169169
def handle_conn(conn):

0 commit comments

Comments
 (0)