com.badlogic.gdx.backends.android
Class AndroidNet

java.lang.Object
  extended by com.badlogic.gdx.backends.android.AndroidNet
All Implemented Interfaces:
Net

public class AndroidNet
extends Object
implements Net

Android implementation of the Net API.

Author:
acoppes

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.badlogic.gdx.Net
Net.HttpMethods, Net.HttpRequest, Net.HttpResponse, Net.HttpResponseListener, Net.Protocol
 
Constructor Summary
AndroidNet(AndroidApplication activity)
           
 
Method Summary
 Socket newClientSocket(Net.Protocol protocol, String host, int port, SocketHints hints)
           
 ServerSocket newServerSocket(Net.Protocol protocol, int port, ServerSocketHints hints)
           
 void openURI(String URI)
           
 void sendHttpRequest(Net.HttpRequest httpRequest, Net.HttpResponseListener httpResponseListener)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndroidNet

public AndroidNet(AndroidApplication activity)
Method Detail

sendHttpRequest

public void sendHttpRequest(Net.HttpRequest httpRequest,
                            Net.HttpResponseListener httpResponseListener)
Specified by:
sendHttpRequest in interface Net

newServerSocket

public ServerSocket newServerSocket(Net.Protocol protocol,
                                    int port,
                                    ServerSocketHints hints)
Specified by:
newServerSocket in interface Net

newClientSocket

public Socket newClientSocket(Net.Protocol protocol,
                              String host,
                              int port,
                              SocketHints hints)
Specified by:
newClientSocket in interface Net

openURI

public void openURI(String URI)
Specified by:
openURI in interface Net


Copyright © 2013. All Rights Reserved.