Hideto KIHARA / IrcBot

Fork of IrcBot by Nick Ryder

Revision:
3:19b779ac2398
Parent:
2:e4c74eb20586
--- a/IrcBot.h	Sat Aug 02 12:57:57 2014 +0000
+++ b/IrcBot.h	Sat Sep 20 09:35:07 2014 +0000
@@ -4,6 +4,7 @@
 #include "mbed.h"
 #include "EthernetInterface.h"
 #include <vector>
+#include <stdarg.h>
 
 /** 
  * IrcBot responds to commands on IRC using message users' handlers
@@ -46,7 +47,7 @@
          * @param port Port to connect to network on
          * @param channel Channel to connect to
          */
-        IrcBot(char * nickname, char * network, int port, char * channel);
+        IrcBot(char * nickname, char * network, int port = 6667, char * channel = NULL);
         /** Connect to the network. 
          *
          * Users should have already created a network interface 
@@ -62,10 +63,11 @@
          * incoming private messages
          */
         bool read();
+        void printfln(char *fmt, ...);
+        void send(char *);
     private:
         void handle(IrcMessage);
         void parse();
-        void send(char *);
         Serial pc;
         TCPSocketConnection sock;
         char network[64];