mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 07:31:35 +08:00
Resync new repository with old repo r5166
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5153 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/python
|
||||
from socket import *
|
||||
import time
|
||||
|
||||
SOCKET_NAME = '/tmp/osmocom_loader'
|
||||
|
||||
s = socket(AF_UNIX, SOCK_STREAM)
|
||||
s.connect(SOCKET_NAME)
|
||||
|
||||
while 1:
|
||||
try:
|
||||
x = raw_input(">")
|
||||
y = len(x) + 1
|
||||
s.send(chr(y>>8) + chr(y&255) + x + "\n")
|
||||
except:
|
||||
print ''
|
||||
break
|
||||
|
||||
s.close()
|
||||
Reference in New Issue
Block a user