top of page
Search

Webserver

  • Writer: Estefanny
    Estefanny
  • Apr 5, 2018
  • 1 min read

Updated: May 6, 2018

In this project we will try to have a persistent connection, or keep alive, while the webserver operates with HTML files, Image file type, and other other file type.







I was provided with initial code for the webhandler, as well as the main function, and the task was for us to be able to have a persistent connection. Although I researched how to do it through sending files in chunks, it was really easy to modify the process request with a try and except in order to identify the errors.



After this I also deleted the line " self.connected_socket.close() "


Since we had to display various types of medias I decided to display an image as well as play an audio file. All I had to do was modify the HTML file I had previously created by adding the tags for a jpg and a wav file.




 
 
 

Recent Posts

See All

Commentaires


follow me
  • White YouTube Icon

© 2018 NetCentric Projects. Proudly created with Wix.com

Meet Estefanny
I'm a Computer Science major with a minor in Digital Art and Business Info.
This blog is dedicated to netcentric projects. 
bottom of page