CREATING THE SOCKET ON A MACHINE AND SHARING A FILE THROUGH SOCKET PROGRAMMING ON RASPBERRY PI

STEP 1: SETUP THE RASPBERRY PI AND CONNECT IT WITH THE INTERNET

STEP2: OPEN LEAFPAD AND WAP FOR SERVER server.py AS SHOWN BELOW:

1

STEP 3:OPEN LEAFPAD AND WAP FOR CLIENT AS client.py AS SHOWN BELOW:

2

STEP 4: OPEN LX TERMINAL AND RUN THE SERVER CODE:

34

Note: when server.py will run successfully then socket will be created and it is ready to listen to the other socket connection.

STEP 5: OPEN LX TERMINAL AND RUN THE CLIENT CODE WHICH WILL CREATE SOCKET AND LISTEN TO SERVER

56

STEP 6: WHEN CLIENT CODE WILL RUN IT WILL ESTABLISH THE CONNECTION WITH SERVER AND THE FILE WILL BE SHARED TO IT WHICH WILL BE UPDATED AGAIN AND AGAIN.

7 8 9

REAL TIME UPDATION OF THE SHARED FILE

1011

STEP 7: THE UPDATION OF THE SHARED FILE CAN BE CHECKED BY SEEING THE PROPERTY OF THE FILE

12 13 14