Package org.eclipse.ecf.provider.filetransfer.events.socket

Examples of org.eclipse.ecf.provider.filetransfer.events.socket.SocketClosedEvent


      Trace.trace(Activator.PLUGIN_ID, "connect(" + remoteAddress.toString() + ", " + timeout + ")"); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
      sock.connect(remoteAddress, timeout);
      Trace.trace(Activator.PLUGIN_ID, "connected"); //$NON-NLS-1$
    } catch (IOException e) {
      Trace.catching(Activator.PLUGIN_ID, DebugOptions.EXCEPTIONS_CATCHING, ECFHttpClientProtocolSocketFactory.class, "createSocket", e); //$NON-NLS-1$
      fireEvent(socketConnectListener, new SocketClosedEvent(source, sock, sock));
      Trace.throwing(Activator.PLUGIN_ID, DebugOptions.EXCEPTIONS_THROWING, ECFHttpClientProtocolSocketFactory.class, "createSocket", e); //$NON-NLS-1$
      throw e;
    }

    Socket toReturn;
View Full Code Here


      socket.connect(remoteAddress, connectionTimeout);
      socket.setSoTimeout(socketTimeout);
    } catch (SocketException e) {
      Trace.catching(Activator.PLUGIN_ID, DebugOptions.EXCEPTIONS_CATCHING, ECFHttpClientSecureProtocolSocketFactory.class, "performConnection", e); //$NON-NLS-1$
      fireEvent(this.socketConnectListener, new SocketClosedEvent(source, socket, socket));
      Trace.throwing(Activator.PLUGIN_ID, DebugOptions.EXCEPTIONS_THROWING, ECFHttpClientSecureProtocolSocketFactory.class, "performConnection", e); //$NON-NLS-1$
      throw e;
    } catch (IOException e) {
      Trace.catching(Activator.PLUGIN_ID, DebugOptions.EXCEPTIONS_CATCHING, ECFHttpClientSecureProtocolSocketFactory.class, "performConnection", e); //$NON-NLS-1$
      fireEvent(this.socketConnectListener, new SocketClosedEvent(source, socket, socket));
      Trace.throwing(Activator.PLUGIN_ID, DebugOptions.EXCEPTIONS_THROWING, ECFHttpClientSecureProtocolSocketFactory.class, "performConnection", e); //$NON-NLS-1$
      throw e;
    }
  }
View Full Code Here

      Trace.trace(Activator.PLUGIN_ID, "connectingLayeredSocket(original=" + socket + ",dest=" + host + ":" + port + ")"); //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$
      sslSocket = (SSLSocket) this.sslSocketFactory.createSocket(socket, host, port, autoClose);
      Trace.trace(Activator.PLUGIN_ID, "connected"); //$NON-NLS-1$
    } catch (IOException e) {
      Trace.catching(Activator.PLUGIN_ID, DebugOptions.EXCEPTIONS_CATCHING, ECFHttpClientSecureProtocolSocketFactory.class, "createLayeredSocket", e); //$NON-NLS-1$
      fireEvent(this.socketConnectListener, new SocketClosedEvent(source, sslSocket, sslSocket));
      Trace.throwing(Activator.PLUGIN_ID, DebugOptions.EXCEPTIONS_THROWING, ECFHttpClientSecureProtocolSocketFactory.class, "createSocket", e); //$NON-NLS-1$
      throw e;
    }

    return wrapSocket(sslSocket);
View Full Code Here

      try {
        Trace.trace(Activator.PLUGIN_ID, "closing socket " + this.toString()); //$NON-NLS-1$
        super.close();
      } finally {
        fireEvent(new SocketClosedEvent(source, getSocket(), (wrappedSocket != null ? wrappedSocket : this)));
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.provider.filetransfer.events.socket.SocketClosedEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.