Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
imanay
- Wed, 09 Jan 2013 21:06:56
Show More
0
trunk/absroot/source/abspy/test/tcp/client.py
trunk/absroot/source/abspy/test/tcp/client.py
+2
-2
@@
-1,10
+1,10
1
import socket
No newline at end of file
1
import socket
2
2
No newline at end of file
3
host = "192.168.1.100"
No newline at end of file
3
host = "192.168.1.117"
No newline at end of file
4
s = socket . socket ()
No newline at end of file
4
s = socket . socket ()
5
s . connect (( host , 5500 ))
No newline at end of file
5
s . connect (( host , 5500 ))
6
6
No newline at end of file
7
fd = open ( "input3.txt" , "r" )
No newline at end of file
7
fd = open ( "input.txt" , "r" )
No newline at end of file
8
FileList = fd . readlines ()
No newline at end of file
8
FileList = fd . readlines ()
9
mensaje = "" . join ( FileList )
No newline at end of file
9
mensaje = "" . join ( FileList )
10
s . send ( mensaje )
No newline at end of file
10
s . send ( mensaje )
0
trunk/absroot/source/abspy/test/tcp/file.py
trunk/absroot/source/abspy/test/tcp/file.py
+2
-2
@@
-1,6
+1,6
1
n = 16384 + 1
No newline at end of file
1
n = 511 + 1
No newline at end of file
2
#n = 32768 + 1
2
#n = 32768 + 1
No newline at end of file
3
fd = open ( "input3.txt" , "w" )
No newline at end of file
3
fd = open ( "input2.txt" , "w" )
No newline at end of file
4
for i in range ( n ):
No newline at end of file
4
for i in range ( n ):
5
fd . write ( "@" )
No newline at end of file
5
fd . write ( "@" )
6
fd . write ( "quit" )
No newline at end of file
6
fd . write ( "quit" )
0
trunk/absroot/source/abspy/test/tcp/server.py
trunk/absroot/source/abspy/test/tcp/server.py
+3
-1
@@
-1,9
+1,11
1
import socket
No newline at end of file
1
import socket
2
import time
No newline at end of file
2
import time
3
3
No newline at end of file
4
host = "192.168.1.100"
No newline at end of file
4
host = "192.168.1.117"
No newline at end of file
5
s = socket . socket ()
No newline at end of file
5
s = socket . socket ()
6
s . bind (( host , 5500 ))
No newline at end of file
6
s . bind (( host , 5500 ))
7
No newline at end of file
8
while True :
No newline at end of file
7
print "waiting client..."
No newline at end of file
9
print "waiting client..."
8
s . listen ( 1 )
No newline at end of file
10
s . listen ( 1 )
9
No newline at end of file
11
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