Hardware Reference
In-Depth Information
Diving into the software
We have set up the hardware that will be used along this chapter. Now, let's develop
our application to give it some life.
Example 1 - our first client server application
Assuming that you retrieved the whole project in your local directory, simply go to
the server_1 directory and open matrixServer.py .
Installing the requirements
Looking at the code parts, some prerequisites must be followed for both the server
and client sides.
For the server, you can use the following command:
sudo pip install twisted
Alternatively, you can use the following line:
Install python-twisted
For the client part, you'll need to install the Python environment according to your
operating system from https://www.python.org/downloads/ .
The code that we'll use here is compatible with both the 2.7 and 3 versions.
Additionally, you'll need a twisted matrix , which you can retrieve with this command:
pip install twisted
Alternatively, you can obtain the one for your operating system from
https://twistedmatrix.com/trac/wiki/Downloads .
The hardware is set up and the requirements are in place; you are ready to run
the example.
 
Search WWH ::




Custom Search