{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

TCPServer.py - from socket import serverPort = 12000...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
from socket import * serverPort = 12000 serverSocket = socket(AF_INET, SOCK_STREAM) serverSocket.bind(('127.0.0.1', serverPort)) serverSocket.listen(1) print 'The server is ready to receive' while 1: connectionSocket, addr = serverSocket.accept()
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}