GithubHelp home page GithubHelp logo

ft_irc's Introduction

Hi there ๐Ÿ‘‹

  • I completed my Software Engineering Core Curriculum at 42 Wolfsburg.
  • I also completed a full time Data Science degree (Master Level) with OpenClassrooms.
  • I am interested in : Machine Learning, Data Science, Big Data, Computer Vision, Automotive Engineering and Embedded Systems.
  • ๐Ÿ”ญ Iโ€™m currently working on : C++
  • ๐ŸŒฑ Iโ€™m currently learning : C++, Data Science
  • ๐Ÿ˜„ Pronouns: he/him
  • The languages I learn : C, C++, Python, Matlab
    My Skills
  • The tool I use to code : Visual Studio Code
    My Skills
  • The clouds I use to deploy my machine learning models and my dashboards: Azure, AWS
    My Skills

๐Ÿ”ฅ My Stats :

Top Langs

ft_irc's People

Contributors

fmollenh avatar fsemke avatar mexes4453 avatar mochan42 avatar pmeising avatar triinuj avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

pmeising fsemke

ft_irc's Issues

remChannel() func

When User leaves channel as last user, channel needs to be deleted.

[Server] Implement verifyPassword() function

In order for the User to access the password of the Server, we need to implement a function which verifies the passwords correctness without exposing it to the User class directly.

/Kick command doesn't recognize channel nor kick message

When we /kick a user, the syntax is not correct.
Examples of /kick command:

Image

However, when we try out this syntax, it tries to interpret the first argument as the user instead of the channel that the user is to be kicked from. Furthermore, the ':' should indicate a kick message.

Find a solution for the Crtl + D input

When the Client sends partial data and then ends the communication by providing an EOF command like in the following example:

/JO CRTL +D
IN

If the command is continued in a new line after having sent the first (partial) command, the Server should be able to connect the dots and recognize the command as /JOIN instead of treating it as 2 seperate messages.

Free User object if socket disconnects unexpectedly

If the recv() function returns a -1, while we are trying to read from that socket, we can assume the client has disconnected.
Upon disconnect, we should free the memory allocated for that user manually.

Exit / Close function for server

We need to be able to terminate the program without memory leaks. Therefore we need a function, that makes sure each and every allocated memory item is freed / deleted.

Segfaults /PASS after user is already regitered

Cmds used:

  • valgrind ./ircserv 50000 password
  • Client connects
  • Manually tried the /PASS command
  • Listening Socket successfully set to reusable
    Listening Socket successfully set to non blocking
    Listening Socket sucessfully bound to server port
    Listening Socket started listening to IRC clients...
    User with fd = 4 connected with server.
    New client connected from :127.0.0.1:47786
    IP Address (long) :127.0.0.1
    Stored message from client: CAP LS 302
    NICK Ninjacookie
    USER Ninjacookie 0 * :realname

Parsed command: CAP
Parsed arguments: LS 302
Parsed command: NICK
Parsed arguments: Ninjacookie
Parsed command: USER
Parsed arguments: Ninjacookie 0 * realname
Command: CAP
Parsed arguments: 0- LS1- 302Command: NICK
Parsed arguments: 0- NinjacookieCommand: USER
Parsed arguments: 0- Ninjacookie1- 02- *3- realname
User::executeCommand called with command = CAP
User::executeCommand called with command = NICK
User Ninjacookie not found
User::executeCommand called with command = USER
User::setUserName called. The _UserName is now: Ninjacookie
Stored message from client: PASS

Parsed command: PASS
Parsed arguments:
Command: PASS
Parsed arguments:
User::executeCommand called with command = PASS
==5904== Invalid read of size 8

HEAP SUMMARY:
==5904== in use at exit: 543 bytes in 8 blocks
==5904== total heap usage: 68 allocs, 60 frees, 80,256 bytes allocated
==5904==
==5904== LEAK SUMMARY:
==5904== definitely lost: 0 bytes in 0 blocks
==5904== indirectly lost: 0 bytes in 0 blocks
==5904== possibly lost: 0 bytes in 0 blocks
==5904== still reachable: 543 bytes in 8 blocks
==5904== suppressed: 0 bytes in 0 blocks
==5904== Rerun with --leak-check=full to see details of leaked memory
==5904==
==5904== For lists of detected and suppressed errors, rerun with: -s
==5904== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Segmentation fault

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.