00001 using System;
00002 using System.Net;
00003 using System.Net.Sockets;
00004
00005 namespace Tamir.SharpSsh.java.net
00006 {
00010 public class ServerSocket : TcpListener
00011 {
00012 public ServerSocket(int port, int arg, InetAddress addr) : base(addr.addr, port)
00013 {
00014 this.Start();
00015 }
00016
00017 public Tamir.SharpSsh.java.net.Socket accept()
00018 {
00019 return new Tamir.SharpSsh.java.net.Socket( this.AcceptSocket() );
00020 }
00021
00022 public void close()
00023 {
00024 this.Stop();
00025 }
00026 }
00027 }