13
static char THIS_FILE[] = __FILE__;
18
Endpoint ep(TCP | CLIENT, "[127.0.0.1]:6667");
21
ep.Write("NICK jeff2\015\012");
22
ep.Write("USER blah blah blah :blahs\015\012");
24
while(ep.Read(-200, str))
27
if (str.find("376") != string::npos) // End of /MOTD
29
ep.Write("MODE jeff2 +ix\015\012");
30
ep.Write("PRIVMSG jeff :hello world\015\012");