public int getLocalPort() { return getSocket().getLocalPort(); }
public boolean open() { Socket sock = getSocket(); try { sockIn = sock.getInputStream(); sockOut = sock.getOutputStream(); } catch (Exception e) { //TODO Add blacklistening of the UPnP Device return false; } return true; }
public String getLocalAddress() { return getSocket().getLocalAddress().getHostAddress(); }
public boolean close() { try { if (sockIn != null) sockIn.close(); if (sockOut != null) sockOut.close(); getSocket().close(); } catch (Exception e) { //Debug.warning(e); return false; } return true; }
public HTTPSocket(HTTPSocket socket) { setSocket(socket.getSocket()); setInputStream(socket.getInputStream()); setOutputStream(socket.getOutputStream()); }
public int getLocalPort() { return getSocket().getLocalPort(); }
public int getLocalPort() { return getSocket().getLocalPort(); }
public boolean open() { Socket sock = getSocket(); try { sockIn = sock.getInputStream(); sockOut = sock.getOutputStream(); } catch (Exception e) { //TODO Add blacklistening of the UPnP Device return false; } return true; }
public String getLocalAddress() { return getSocket().getLocalAddress().getHostAddress(); }
public String getLocalAddress() { return getSocket().getLocalAddress().getHostAddress(); }
public boolean open() { Socket sock = getSocket(); try { sockIn = sock.getInputStream(); sockOut = sock.getOutputStream(); } catch (Exception e) { //TODO Add blacklistening of the UPnP Device return false; } return true; }
public boolean close() { try { if (sockIn != null) sockIn.close(); if (sockOut != null) sockOut.close(); getSocket().close(); } catch (Exception e) { //Debug.warning(e); return false; } return true; }
public boolean close() { try { if (sockIn != null) sockIn.close(); if (sockOut != null) sockOut.close(); getSocket().close(); } catch (Exception e) { //Debug.warning(e); return false; } return true; }
public HTTPSocket(HTTPSocket socket) { setSocket(socket.getSocket()); setInputStream(socket.getInputStream()); setOutputStream(socket.getOutputStream()); }
public HTTPSocket(HTTPSocket socket) { setSocket(socket.getSocket()); setInputStream(socket.getInputStream()); setOutputStream(socket.getOutputStream()); }