如提,编译通过,运行提示connettion timeout,会不会跟我现在系统有关啊?我现在用的是xp,服务器那边应该是linux
连接类的代码如下:
import org.jibble.pircbot.*;public class MyBotMain {
public static void main(String[] args) throws Exception {
// Now start our bot up.
MyBot bot = new MyBot();
// Enable debugging output.
bot.setVerbose(true);
// Connect to the IRC server.
bot.connect("irc.freenode.net"); // Join the #pircbot channel.
bot.joinChannel("#pircbot");
}
}
请大虾帮帮忙啊,如果有现成的代码更好,可以发到我.cn,先谢过拉
连接类的代码如下:
import org.jibble.pircbot.*;public class MyBotMain {
public static void main(String[] args) throws Exception {
// Now start our bot up.
MyBot bot = new MyBot();
// Enable debugging output.
bot.setVerbose(true);
// Connect to the IRC server.
bot.connect("irc.freenode.net"); // Join the #pircbot channel.
bot.joinChannel("#pircbot");
}
}
请大虾帮帮忙啊,如果有现成的代码更好,可以发到我.cn,先谢过拉
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货