Commit 3286c0fe authored by Philipp Auersperg's avatar Philipp Auersperg

...

parent 4d459d61
......@@ -36,7 +36,7 @@ version = 0.1
# (list) Application requirements
# comma seperated e.g. requirements = sqlite3,kivy
requirements = kivy, plyer, jnius, android
requirements = kivy, plyer, jnius, android, git+https://github.com/zworkb/procbridge-python.git
# (str) Custom source folders for requirements
# Sets custom source for any requirements with recipes
......@@ -196,7 +196,7 @@ android.arch = armeabi-v7a
#
# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
p4a.source_dir = ../../r2/p4a
p4a.source_dir = ../python-for-android
# (str) The directory in which python-for-android should look for your own build recipes (if any)
#p4a.local_recipes =
......
print "------------------------------------------serv"
import procbridge
print 'procbridge imported'
delegate = procbridge.Delegate()
@delegate.api
def echo(self, echo, **kw):
return "Hello:" + echo
@delegate.api
def shutdown(self, **kw):
self.server.stop()
def runit():
host = '127.0.0.1'
port = 8077
# start socket server
server = procbridge.ProcBridgeServer(host, port, delegate)
server.start()
print('listening...')
server.wait_for_stop()
print('bye!')
print 'starting...'
runit()
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment