IRC Client



  • Hallo, also ich will mirn IRC Client schreiben, dazu benutz ich die samrtIRC4net API. Um das alles n bissl zu verstehen hab ich einfach mal ne Form Applikation gemacht und probiert aufn Server zu verbinden und dann automatisch n Channel zu joinen. Nur macht mir jetzt Listen() probleme, ich versteh nicht ganz was der Entwickler damit gemeint hat. Weil mit Listen() geht es aber die Form pop nicht auf und ohne gehts ned aber die Form ist da. Hoffe jemand kann Helfen.

    Hier die Erklärung zu Listen() und ListenOnce():

    // here we tell the IRC API to go into a receive mode, all events
    // will be triggered by _this_ thread (main thread in this case)
    // Listen() blocks by default, you can also use ListenOnce() if you
    // need that does one IRC operation and then returns, so you need then
    // an own loop
    irc.Listen();

    Hier sein Beispiel: http://www.pastebin.com/m54384789

    Hier mein Versuch: http://www.pastebin.com/m20f7a4b9


Anmelden zum Antworten