copperwall / BadSocket

A pretty poor C++ wrapper around C sockets API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BadSocket

I tried writing a Socket class around a really small part of the C socket API. I originally wanted to try making a C++ IRC bot, but I thought a socket wrapper might be a good stepping stone to that.

This can currently take a hostname and port and open a TCP connection on that port. You can't read or write, but that's coming soon :)

My end goal is to be able to connect to an IRC server, and use the Socket object like an ostream so you could write to it like

Socket sock;
sock.connect("irc.freenode.net", 6667);

sock << "PRIVMSG #" << channel << " :" << message << endl;

About

A pretty poor C++ wrapper around C sockets API


Languages

Language:C++ 93.8%Language:Makefile 6.2%