Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/SocketTransportImpl.java')
-rw-r--r--org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/SocketTransportImpl.java64
1 files changed, 33 insertions, 31 deletions
diff --git a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/SocketTransportImpl.java b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/SocketTransportImpl.java
index ef23a8c15..8079f5b09 100644
--- a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/SocketTransportImpl.java
+++ b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/SocketTransportImpl.java
@@ -10,7 +10,6 @@
*******************************************************************************/
package org.eclipse.jdi.internal.connect;
-
import java.io.IOException;
import com.sun.jdi.connect.Transport;
@@ -18,43 +17,46 @@ import com.sun.jdi.connect.spi.Connection;
import com.sun.jdi.connect.spi.TransportService.ListenKey;
public class SocketTransportImpl implements Transport {
- public static final String TRANSPORT_NAME = "dt_socket"; //$NON-NLS-1$
+ public static final String TRANSPORT_NAME = "dt_socket"; //$NON-NLS-1$
public static final int MIN_PORTNR = 0;
public static final int MAX_PORTNR = 65535;
-
+
SocketTransportService service;
- private ListenKey fListenKey;
-
+ private ListenKey fListenKey;
+
/**
* Constructs new SocketTransportImpl.
- */
+ */
public SocketTransportImpl() {
service = new SocketTransportService();
}
- /* (non-Javadoc)
- * @see com.sun.jdi.connect.Transport#name()
- */
- public String name() {
- return TRANSPORT_NAME;
- }
-
- public Connection attach(String hostname, int port, long attachTimeout, long handshakeTimeout) throws IOException {
- return service.attach(hostname, port, attachTimeout, handshakeTimeout);
- }
-
- public String startListening(int port) throws IOException {
- fListenKey = service.startListening(port+""); //$NON-NLS-1$
- return fListenKey.address();
- }
-
- public void stopListening() throws IOException {
- service.stopListening(fListenKey);
- }
-
- public Connection accept(long attachTimeout, long handshakeTimeout) throws IOException {
- return service.accept(fListenKey, attachTimeout, handshakeTimeout);
- }
-
-
+ /*
+ * (non-Javadoc)
+ *
+ * @see com.sun.jdi.connect.Transport#name()
+ */
+ public String name() {
+ return TRANSPORT_NAME;
+ }
+
+ public Connection attach(String hostname, int port, long attachTimeout,
+ long handshakeTimeout) throws IOException {
+ return service.attach(hostname, port, attachTimeout, handshakeTimeout);
+ }
+
+ public String startListening(int port) throws IOException {
+ fListenKey = service.startListening(port + ""); //$NON-NLS-1$
+ return fListenKey.address();
+ }
+
+ public void stopListening() throws IOException {
+ service.stopListening(fListenKey);
+ }
+
+ public Connection accept(long attachTimeout, long handshakeTimeout)
+ throws IOException {
+ return service.accept(fListenKey, attachTimeout, handshakeTimeout);
+ }
+
}

Back to the top