2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
8 package org.opendaylight.controller.netconf.ssh;
10 import java.net.ServerSocket;
12 public class NetconfSSHServer {
14 private static boolean acceptMore = true;
15 private static final int SERVER_PORT = 830;
16 private ServerSocket ss = null;
18 private NetconfSSHServer() throws Exception{
19 this.ss = new ServerSocket(SERVER_PORT);
21 SocketThread.start(ss.accept());
24 public static NetconfSSHServer start() throws Exception {
25 return new NetconfSSHServer();
28 public void stop() throws Exception {