Skip to content

Commit

Permalink
Exiting from the website and limited movments
Browse files Browse the repository at this point in the history
  • Loading branch information
joewashear007 committed Jan 16, 2014
1 parent 6a49356 commit 9141c6f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ def on_message(self, msg):
print(msg)
self.send_message("Got :" + msg)

def on_close(self):
print("Server: Closing Connection for ", self.client_address)
self.send_message("Server: Closing Connection")

def send_message(self, message):
self.request.sendall(self._pack(message))
#-------------------------------------------------------------------
Expand Down Expand Up @@ -79,9 +83,8 @@ def handle(self):

def close(self, message="Cxn Closed"):
self.closeHandle = True
print("Server: Closing Connection for ", self.client_address)
self.send_message("Server: Closing Connection")
self.request.sendall(self._pack(message, True))
self.on_close()

def handshake(self):
key = None
Expand Down Expand Up @@ -306,6 +309,12 @@ def launch_webpage(self):
#Copies all the resource over to the temp dir
webbrowser.open(self.httpServer.get_address() + "index.html")

def status(self):
if self.wsServer is None or self.httpServer is None:
return False
else:
return True

if __name__ == '__main__':
print("No Main Program!")

Binary file modified test.blend
Binary file not shown.
Binary file modified test.blend1
Binary file not shown.
Binary file modified test.blend2
Binary file not shown.

0 comments on commit 9141c6f

Please sign in to comment.