2004-05-21 Patrik Torstensson <totte@hiddenpeaks.com>
authorPatrik Torstensson <totte@mono-cvs.ximian.com>
Fri, 21 May 2004 17:05:32 +0000 (17:05 -0000)
committerPatrik Torstensson <totte@mono-cvs.ximian.com>
Fri, 21 May 2004 17:05:32 +0000 (17:05 -0000)
commitef50c1b2e1dd09e527840e38355b6e906275872c
tree9f9ca13701ff6757f4d4313368522f4f591cad25
parentf773ee528af20d6db55b37a3a95212f8bcff66df
2004-05-21 Patrik Torstensson <totte@hiddenpeaks.com>

* TcpListener.cs: Fixes a lot of the problems with remoting nunit tests.

(AcceptTcpClient): Don't create TcpClient before a
connection is accepted.

(LocalEndPoint): Use Server LocalEndPoint if connected
otherwise use endpoint from ctor.

(Init): Save end point, not server endpoint. This did
cause TcpListener to ignore port sent via constructor.

(Pending): Fixed wait time (method should return directly)

(Start): Moved Bind here instead of Init method; old method
caused us to bind ports even if the listener was stopped.

(Stop): Null server when stopping

svn path=/trunk/mcs/; revision=27837
mcs/class/System/System.Net.Sockets/ChangeLog
mcs/class/System/System.Net.Sockets/TcpListener.cs