Back to project page roodroid.
The source code is released under:
Copyright (c) 2011, Jonathan Perichon & Lucas Gerbeaux Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"...
If you think the Android project roodroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package fr.utbm.roodroid.client; //from w w w . j ava 2 s . c om import java.io.IOException; import java.net.Socket; import java.net.UnknownHostException; import fr.utbm.roodroid.ConnectionWifi; /** * ClientWifi * Extends Client in order to instantiate the ConnectionWifi. * * @author Jonathan Perichon <jonathan.perichon@gmail.com> * @author Lucas Gerbeaux <lucas.gerbeaux@gmail.com> * */ public class ClientWifi extends Client { public ClientWifi(String id) { super(id); } public void connect(String ipAddress, int port) throws UnknownHostException, IOException { this.connection = new ConnectionWifi(this.handler, new Socket(ipAddress, port)); new Thread(this.connection).start(); this.authenticate(); } }