Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
imanay
- Fri, 14 Dec 2012 22:13:28
Show More
0
trunk/absroot/source/abspy/abscontrol/server.py
trunk/absroot/source/abspy/abscontrol/server.py
+2
-1
@@
-4,7
+4,7
4
4
5
class ABSServer :
5
class ABSServer :
6
6
7
def __init__ ( self , ipSource = "localhost" , ipDestino = "192.168.1.255" , portDestino = 7000 , ipDestino2 = "192.168.1.255" , portDestino2 = 5500 , ftpPortDestino = None ):
7
def __init__ ( self , ipSource = "localhost" , ipDestino = "192.168.1.117 " , portDestino = 7000 , ipDestino2 = "192.168.1.255" , portDestino2 = 5500 , ftpPortDestino = None ):
8
8
9
self . ipSource = ipSource
9
self . ipSource = ipSource
10
self . ipDestino = ipDestino
10
self . ipDestino = ipDestino
@@
-35,6
+35,7
35
35
36
if cmd == "SNDF" :
36
if cmd == "SNDF" :
37
self . sendFile2Modules ()
37
self . sendFile2Modules ()
38
pass
38
39
39
if cmd == "CHGB" :
40
if cmd == "CHGB" :
40
self . changeBeam ()
41
self . changeBeam ()
0
trunk/absroot/source/abspy/test/tcp/server.py
trunk/absroot/source/abspy/test/tcp/server.py
+3
-1
@@
-1,4
+1,5
1
import socket
1
import socket
2
import time
2
3
3
host = "192.168.1.117"
4
host = "192.168.1.117"
4
s = socket . socket ()
5
s = socket . socket ()
@@
-9,6
+10,7
9
10
10
while True :
11
while True :
11
recibido = sc . recv ( 1024 )
12
recibido = sc . recv ( 1024 )
13
time . sleep ( 70 )
12
if recibido == "quit" :
14
if recibido == "quit" :
13
break
15
break
14
print "Recibido:" , recibido
16
print "Recibido:" , recibido
0
trunk/absroot/source/abspy/test/udp/server.py
trunk/absroot/source/abspy/test/udp/server.py
+6
-1
@@
-1,9
+1,14
1
import socket
1
import socket
2
import time
2
3
3
dgramSock = socket . socket ( socket . AF_INET , socket . SOCK_DGRAM )
4
dgramSock = socket . socket ( socket . AF_INET , socket . SOCK_DGRAM )
4
dgramSock . bind ( ( '' , 23000) )
5
dgramSock . bind ( ( '192.168.1.117 ' , 7 000) )
5
6
6
while 1 :
7
while 1 :
7
8
8
msg , ( addr , port ) = dgramSock . recvfrom ( 100 )
9
msg , ( addr , port ) = dgramSock . recvfrom ( 100 )
10
11
# time.sleep(30) #not ok at the client
12
# time.sleep(10) #ok
13
print msg + 'to: ' + addr + ':' + str ( port )
9
dgramSock . sendto ( msg , ( addr , port ) )
14
dgramSock . sendto ( msg , ( addr , port ) )
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages