Find Jobs
Hire Freelancers

Design a simple web client and web server

$10-30 USD

Cerrado
Publicado hace más de 8 años

$10-30 USD

Pagado a la entrega
This project allows students learn how a web server and web client work, and learn how to design a web server. Although this project requires an understanding of TCP socket programming, it provides the students a sample code to start. Activity 1: Use a web browser, e.g., Internet Explorer or Chrome to connect to instructor’s web site: [login to view URL] Fetch the tar file [login to view URL] and store it in your working directory, e.g., project1/. And then extract files from [login to view URL] to your working directory. You will see five subdirectories in your working directory after the extraction but you only need these three: h, api and apps. h directory contains header files; api directory contains functions that are used by applications; and apps directory contains application programs. Ignore other subdirectories and files. Activity 2: Compile the source code in Visual Studio2008/[login to view URL] (Note: If you are using a different version of the socket interface, you may need to slightly modify the program. The following procedures may also be different if you are using another C++ package): Build the web client: At the very top of the Solution Explorer window, right click the Solution and Add->Add New Project. Select “Managed C++ Empty” in the list. Then select the proper location in the “Location” field and type a name, say “client” in the “Name” filed. Click on “OK”. Then add “webclient.c” in apps directory to Source Files. Also add all files in the api directory to Source Files. Then add all files in the h directory to Header Files. In the Solution Explorer window, right click on the name of the project, select “Properties”. Then choose C/C++ -> General ->Additional Include Directories. Click on the field and choose the location of the h directory which you extracted in Activity 1. Configure the linker: Click on “client” in the Solution Explorer window and select “Properties”, then click on Linker->General. Change the output file to “$(OutDir)/[login to view URL]”. Under Linker->Input->Additional Dependencies, add ws2_32.lib. Build webclient.exe. Build the web server: Follow the same steps for building the web client (by replacing "webclient.c" by "webserver.c"), except that you must also include source file “readln.c” (located in apps folder) in your project. Activity 3: Read apps/webserver.c to learn how to run webserver. Also, you must run webserver in command line interface. Run the webserver in apps directory, type: webserver 8080 Activity 4: Read apps/webclient.c to learn how to run webclient. You must run webclient in command line interface. Run webclient in the same directory (in another window) to get the web page: webclient localhost / 8080 webclient localhost /time 8080 webclient [login to view URL] / See what show up in the screen. Then, use Internet Explorer or Chrome to get the page: invoke the browser and then type http://localhost:8080/ and http://localhost:8080/time in the address pane. See what show up in the window. Activity 5: Use another computer to read the web page. Firstly, use ifconfig (Linux) or ipconfig (Windows) to find out the IP address of the machine where webserver is running: ifconfig –a on Linux, or ipconfig on Windows
ID del proyecto: 8554205

Información sobre el proyecto

8 propuestas
Proyecto remoto
Activo hace 8 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
8 freelancers están ofertando un promedio de $92 USD por este trabajo
Avatar del usuario
Hi, I have read the requirements and I would like to do this project if given the opportunity. I am a computer science practitioner and having the "C and Algorithms Certification Badge" in my profile gives me confidence and assurance that I can deliver you the project as required. Let me know if you are interested so I can have further details besides what was posted. Thanks.
$30 USD en 1 día
5,0 (622 comentarios)
7,2
7,2
Avatar del usuario
A proposal has not yet been provided
$77 USD en 1 día
4,9 (294 comentarios)
7,1
7,1
Avatar del usuario
I am very proficient in c, c++. I have 15 years c++ developing experience now, and I have worked for 5 years. My work is online game developing, and mainly focus on server side, the language is c++ under linux. I used c++ to make many great projects, for example, I made the tools which can convert java files to c++ scripts which has the same effect, of course garbage collection included. I also made our own mobile game using c++, I even can show you the demo of client. Trust me, please let expert help you.
$100 USD en 1 día
4,8 (94 comentarios)
6,6
6,6
Avatar del usuario
Hello, i am experienced C/C++ developer (over 6 years). I propose to do this project for you. Thanks.
$100 USD en 3 días
5,0 (8 comentarios)
4,1
4,1
Avatar del usuario
A proposal has not yet been provided
$222 USD en 1 día
4,9 (7 comentarios)
3,6
3,6
Avatar del usuario
Hi, I have over 2 years of experience in network programming and I think that I will be a perfect candidate for the job. I can complete a project in 4 days. If you have any questions, don't hesitate to ask me. Best regards, ZMI
$100 USD en 4 días
5,0 (3 comentarios)
2,9
2,9
Avatar del usuario
I have read and understand your requirements Please open chat to discuss further.. +++++++++===========================++++++++++++++++==============================+++
$83 USD en 3 días
5,0 (1 comentario)
2,4
2,4

Sobre este cliente

Bandera de UNITED STATES
United States
0,0
0
Miembro desde sept 25, 2015

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.