class bot { public: void server (char *server, unsigned short int port) { //connect stuff here with sockets..etc userinfo(); } void userinfo (char *user, char *ident, char *realname) { // send the arguments to the server..etc } }; int main (void) { bot bot; bot.server("irc.testing.net", 6667); bot.userinfo("name", "ident", "realname"); return 0; }