edu.columbia.irt.mobiledyswis
Class PGTCPSocketFactory

java.lang.Object
  extended by edu.columbia.irt.mobiledyswis.PGTCPSocketFactory

public class PGTCPSocketFactory
extends java.lang.Object

This class makes TCP socket instance for JavaScript

Author:
Jin Hyung Park (jp2105)

Constructor Summary
PGTCPSocketFactory(WebView appView)
          Instantiates a new TCP socket factory.
 
Method Summary
 PGTCPSocket getInstance(java.lang.String ipWithPortAndBind)
          Getting PGTCPSocket instance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PGTCPSocketFactory

public PGTCPSocketFactory(WebView appView)
Instantiates a new TCP socket factory.

Parameters:
appView - the app view
Method Detail

getInstance

public PGTCPSocket getInstance(java.lang.String ipWithPortAndBind)
Getting PGTCPSocket instance

Parameters:
ipWithPortAndBind - Input String example is "192.168.123.123:80:false" or "0.0.0.0:9999:true". With false value, PGTCPSocket will connect to the given the IP and port. With true value, PGTCPSocket will open the local TCP incoming port.
Returns:
PGTCPSocket instance will be returned.