ADD: test for status in python

Esse commit está contido em:
AJ Keller
2018-04-04 09:19:25 -04:00
commit 6a5019ce6e
3 arquivos alterados com 18 adições e 5 exclusões
+1 -1
Ver Arquivo
@@ -44,5 +44,5 @@ app/index.js
dist/
/app/env.json
.DS_Store
app/env.json
app/resources
-4
Ver Arquivo
@@ -1,4 +0,0 @@
{
"name": "production",
"description": "Add here any environment specific stuff you like."
}
+17
Ver Arquivo
@@ -0,0 +1,17 @@
#!/usr/bin/env python
import socket
TCP_IP = '127.0.0.1'
TCP_PORT = 10996
BUFFER_SIZE = 1024
MESSAGE = "q,sup,;\n"
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((TCP_IP, TCP_PORT))
s.send(MESSAGE)
data = s.recv(BUFFER_SIZE)
s.close()
print "received data:", data