Giter VIP home page Giter VIP logo

net-project's People

Contributors

naveh92 avatar aviadavretz avatar

net-project's Issues

Here's a solution for socket binding problems (code in comment)

Sometimes, a “rough” exit from a program (e.g.,
ctrl-c) does not properly free up a port

Eventually (after a few minutes), the port will be
freed

To reduce the likelihood of this problem, include
the following code:

#include <signal.h>

void cleanExit(){exit(0);}

in socket code:

signal(SIGTERM, cleanExit);

signal(SIGINT, cleanExit);

Implement session communication

When creating a session, server should send address & port to the requesting user, so that the user can open a UDP socket (Other user should be listening for connections 24/7 as long as he isn't in a session/room)

Implement room communication

When a user enters a chat-room, the server sends him a list of all the addresses inside the room.
He then opens a UDP connection for each one.
Also, the server has to update the other users and tell them the user has joined the room. (Users inside rooms listen 24/7 too?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.