Giter VIP home page Giter VIP logo

ircd-novo's People

Contributors

ahf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

virus242

ircd-novo's Issues

Global State in the MessageHandler.

The IRCd shouldn't contain any global state, since we might want to support multiple running IRCd's (for simulation purpose) in the same application, but with different handlers for each IRCd instance.

TLF: Configuration Parser

Investigate the current availability of decent configuration parser packages for Go or implement your own.

TLF: Channel Support

The IRCd currently only support client-to-client communication over the server. Channel support is needed.

Implement "Ping'er"

We need to PING our clients every now and then, but only if they haven't talked on our input connection for N seconds.

For registered client, we should send a "PING :irc.example.org" and for unregistered clients we should simply kill them, if they haven't been promoted to a registered client within 300 seconds after the initial connect.

Client Quit should notify channel members.

Once a client sends a QUIT-message, it's important that said message should be send to each client, that shares at least one channel with the quitting client, exactly once.

The algorithm for doing this, is going to be something in the line of:

q := QuittingClient
n := ClientSet // Set of client's that has already been notified.

for each channel that q is in:
for each client in channel:
if not n.Contains(client):
client.Quit(q) // Let client know that q QUIT.
n.Insert(client)

Current ConnectionHandler does not work correctly for WebSocket connections

Our current connection handler is being used for both TCP and WebSocket connections, but there's one problem with the way it's implemented right now and that affects WebSocket connections. Our current implementation looks like this:

func (this *BasicListener) ConnectionHandler(ircd *Ircd, connection net.Conn, remoteAddr string) {
    this.Printf("Incoming Connection from %s to %s (%s %s)", remoteAddr, this.Address(), this.Secure(), this.Protocol())
    NewClient(this, ircd, connection, remoteAddr)
}

The problem here is that NewClient() returns to the caller as soon as we are done doing the initial registration of the user, but once ConnectionHandler() is done, the http package will terminate the WebSocket connection and therefore disconnect our client.

Perform forward DNS lookups to verify the correctness of the reverse DNS lookup

Currently the hostname is determent purely based on the result of the reverse DNS lookup. This is incorrect. The result of the reverse DNS lookup should be looked up using forward DNS too and verify if they match.

ip := client.ip
rdns := ReverseDNSLookup(ip)
fdns := ForwardDNSLookup(rdns)

if rdns == fdns then
    return rdns
else
    return ip

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.