Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
bd8caf6a
Commit
bd8caf6a
authored
May 19, 1992
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change of names
parent
44fb6bf1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Demo/sockets/echosvr.py
Demo/sockets/echosvr.py
+2
-2
No files found.
Demo/sockets/echosvr.py
View file @
bd8caf6a
...
...
@@ -20,8 +20,8 @@ def main():
s
=
socket
(
AF_INET
,
SOCK_STREAM
)
s
.
bind
(
''
,
port
)
s
.
listen
(
0
)
conn
,
(
host
,
remoteport
)
=
s
.
accept
()
print
'connected by'
,
host
,
remoteport
conn
,
(
remote
host
,
remoteport
)
=
s
.
accept
()
print
'connected by'
,
remote
host
,
remoteport
while
1
:
data
=
conn
.
recv
(
BUFSIZE
)
if
not
data
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment