Quantcast
Channel: BinaryTides » Coding
Viewing all articles
Browse latest Browse all 10

Code a simple socket server in Python

$
0
0
Python sockets
In a previous tutorial we learnt how to do basic . The tutorial explained how to code a socket server and client in python using low level socket api. Check out that tutorial if you are not through on the basics of socket programming in python.
To recap, sockets are virtual endpoints of a communication channel that takes place between 2 programs or processes on the same or different machines. This is more simply called network communication and sockets are the fundamental things behind network applications. For example when you open google.com in your browser, your browser creates a socket and connects to google.com server. There is a socket on google.com server also that accepts the connection and sends your browser the webpage that you see.
Socket Servers in python
In this post we shall learn how to write a simple socket server in python. This has already been covered in the . In this post we shall learn few more things about programming server sockets like handling multiple connections with the select method.
So lets take a look at a simple python server first. The things to do are, create a socket, bind it to a port and then accept connections on...

Read full post here
Code a simple socket server in Python


Viewing all articles
Browse latest Browse all 10

Trending Articles