Drafted a few irc.c functions
Added a few socket functions