Thema: Simple Sample Client
-
01.11.2011, 19:00 #11
Simple Sample Client
Hallo,
ich hab im Client ein Proxy funktion eingebaut, nun möchte ich ein MessageDialog ausgeben wenn man sich nicht zum Proxy verbinden kann.
Hier mein Code
Code:try { if (Parameter.get("ProxyIP") == null || Parameter.get("ProxyIP").equals("") || Parameter.get("ProxyIP").trim().equals("") || Parameter.get("ProxyIP").equals("0.0.0.0")) { System.out.println("Kein Proxy angegeben!"); }else{ System.out.println(String.format("Verbinde mich mit Proxy %s:%s", Parameter.get("ProxyIP"), Parameter.get("ProxyPort"))); System.setProperty("socksProxyHost", ProxyIP); System.setProperty("socksProxyPort", ProxyPort); } } catch (Exception e) { JOptionPane.showMessageDialog(null,"Proxy-Verbindung fehlgeschlagen"); }
while( behappy() ) { code(); }
-
06.11.2011, 22:08 #12
Simple Sample Client
Es gibt eine aktuelle Version, die funktioniert.
Ihr findet diese unter http://k-reverse.com=>krlcient
-
13.11.2011, 17:06 #13
Simple Sample Client
Hallo,
ich hab gerade den Client auf ahl geupdatet und seit dem funktioniert die send() Methode nicht mehr..
Code:... groupChat.addMethod(CtMethod.make( "public void send(String param1) {" + "a($1, false, 0);" + "}" , groupChat)); groupChat.getDeclaredMethod( "a", new CtClass[] { cp.get("java.lang.String"), cp.get("int") } ).setName("parseModuleInput"); groupChat.addMethod(CtMethod.make( "private final void a(String param1, int param2) {" + "parseModuleInput($1, $2);" + "}" , groupChat)); .... "send("e\0" + getNickname() + "\0" + getChannel() + "\0Hallo");" ...
Spoiler:
vill kann mir da einer helfen thxdanke
versteh gerade nicht wo der fehler sein soll..
while( behappy() ) { code(); }
-
13.11.2011, 17:23 #14
Simple Sample Client
der nickname wird beim e-paket nicht mitgesendet
nur bei input
send("e\0" + getChannel() + "\0Hallo");
Ähnliche Themen
-
VB.Net TabControl Webrowser[Sample]
Von exception im Forum .NetAntworten: 0Letzter Beitrag: 02.11.2013, 15:06 -
[Suche] KNLib Sample
Von AmJano im Forum Knuddels ProgrammierungAntworten: 3Letzter Beitrag: 01.11.2012, 23:41 -
VB.Net [Sample] JappyLib
Von Snees im Forum .NetAntworten: 0Letzter Beitrag: 20.03.2012, 17:54 -
[Vorschlag] U-Hacks API + Sample
Von xTracZ im Forum FeedbackAntworten: 5Letzter Beitrag: 08.01.2012, 22:30 -
[C#-OS] Umfragen Bot Sample
Von The Don of NYC im Forum SourcecodeAntworten: 0Letzter Beitrag: 09.05.2011, 21:02
Diese Seite nutzt Cookies, um das Nutzererlebnis zu verbessern. Klicken Sie hier, um das Cookie-Tracking zu deaktivieren.