hoaproject / Irc

The Hoa\Irc library.
https://hoa-project.net
25 stars 9 forks source link

Extract useful informations from connection URL #25

Open shulard opened 7 years ago

shulard commented 7 years ago

As mentioned in the PR #22, the Irc connection URL can contains a lot of details about the connection that must be done : nickname, password, channel...

We need to retrieve this URI information to use them in the connection. For the moment we are throwing away all additional informations given (authentication, channel...).

Irc RFCs :

The list of information that can be retrieved from URL: https://tools.ietf.org/html/draft-butcher-irc-url-04#section-2.1

Hywan commented 7 years ago

Ready for this one @shulard 😉?

shulard commented 7 years ago

Of course I'll work on it asap 😄

shulard commented 7 years ago

Hello,

I've started a PR to work on that issue. For the moment it's WIP but I've already added Hoa\Irc\Socket properties and also updated the transport wrapper behaviour.

Some questions about the IRC specification on which I can't found answers reading RFCs.

By default, the entity defined in the URL is considered as a channel but :

I've also added two "TODO" in the code around :

I'll continue working on using socket properties inside the Node / Client asap.