Find Jobs
Hire Freelancers

Console chat in C

$30-75 USD

W trakcie realizacji
Opublikowano ponad 14 lat temu

$30-75 USD

Płatne przy odbiorze
C . Use only system classes (no extra libraries) - To implement a irc-like chat system with messages strings up to 140 chars 1. myserver - the server responsible for sendining each message to all clients 2. myhear - a client to connect to myserver with TCP/IP sockets and receive the messages and print them to [login to view URL] 3. mysay - a client to connect to myserver with TCP/IP and send a message read from standard input (up to 140 characters). Once the message is send the program should terminate. 4. myspeak - a client program to receive user input. For every line given by the user the program mysay will transmit the message to myserver. myspeak with not have any TCP code, it will just invoke mysay 5. myrapid - a client program to RAPIDLY send messages to myserver (will be used for performance measurements). Comments: +myserver will be multi-threaded - One thread per socket (one for every connection of mysay and one for every connection of myhear). You can chose to use extra threads if you like +myserver will open 2 sockets for incoming connections: port 3331 for mysay and port 3332 for myhear +myserver should be killed when Control-C is pressed. A Message 'Are you sure you want to Quit? [Y/n]' should be displayed +myserver: Pressing Control+\ (SIGQUIT) should display statistics : Number of Active threads : myhear threads: mysay threads: messages arrived: messages transmitted : Average arriving rate : Average transmition rate: +If mysay clients are connected, but no myhear clients exists messages will be discarded. Otherwise all receivers will receive all messages. +When an 'evil' mysay sends messages > 140 characters you should disconnect it +When a hacker runs a myhear with capability of 20 messages / second, and then a mysay that sends 100 messages/second the buffer will become full ! In that case discard messages when more than 12000 messages (around two megabytes) are in the buffer +myhear should die with Control-C +messages will be ascii chars +the IP Address of the server shall be given as an argument at run time (numerical , or using getaddrinfo)
Identyfikator projektu: 3000586

Informację o projekcie

2 ofert
Zdalny projekt
Aktywny 14 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
Przyznano:
Awatar Użytkownika
See private message.
$46,75 USD w 8 dni
5,0 (33 opinii)
4,2
4,2
2 freelancerzy składają oferty o średniej wysokości $45 USD dla tej pracy
Awatar Użytkownika
See private message.
$42,50 USD w 8 dni
0,0 (0 opinii)
0,0
0,0

O kliencie

Flaga UNITED KINGDOM
United Kingdom
5,0
109
Członek od lis 15, 2005

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.