You then create an IRCClientSession object in your code, assign the required properties, and call connect: to connect to the server and run: to create the new thread and start receiving events. For example:
IRCClientSession *session = [[IRCClientSession alloc] init]; MyIRCClientSessionDelegate *controller = [[MyIRCClientSessionDelegate alloc] init]; [session setDelegate:controller]; [controller setSession:session]; [session setServer:@"irc.dal.net"]; [session setPort:@"6667"]; [session setNickname:@"test"]; [session setUsername:@"test"]; [session setRealname:@"test"]; [session connect]; [session run]; //starts the thread
libircclient Copyright (C) 2004-2009 Georgy Yunaev gyunaev@ulduzsoft.com IRCClient Copyright (C) 2009 Nathan Ollerenshaw chrome@stupendous.net
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.