View Single Post
Posts: 49 | Thanked: 9 times | Joined on Oct 2010 @ Borneo
#116
Originally Posted by teamer View Post
Its no need for that , it returns the version of the whatsapp client i think , its not used anywhere (user-agent maybe ... useless)
but if we look at the
public void login() throws IOException, FunXMPP.LoginFailureException, FunXMPP.CorruptStreamException {
this.out.streamStart(this.connection.domain, this.connection.resource);
System.err.println("sent stream start");
sendFeatures();
System.err.println("sent features");
sendAuth();
System.err.println("sent auth");

this.in.streamStart();
System.err.println("read stream start");
String challengeData = readFeaturesAndChallenge();
System.err.println("read features and challenge");
sendResponse(challengeData);
System.err.println("sent response");
readSuccess();
}
this.out.streamStart() will send the resource right? i'm still trying to get a connection to the server, whatever data i send, the server will close the connection after 10 seconds.. have you managed to get an active connection to WA server?