1 2009-06-28 Gert Driesen <drieseng@users.sourceforge.net>
3 * Socket.cs: Modified some argument names to match MS. Moved disposed
4 check before argument checks in Receive. Use SocketError.InvalidArgument
5 instead of using magic numbers. Added back comments that was
6 accidentally removed in my previous commit.
7 * Socket_2_1.cs: Modified some argument names to match MS.
9 2009-06-28 Gert Driesen <drieseng@users.sourceforge.net>
11 * Socket.cs: In GetSocketOption, throw SocketException when (byte [])
12 option value is null. Use SocketError fields instead of using "magic"
13 number. In SetSocketOption (SocketOptionLevel, SocketOptionName, object)
14 only accept Linger, AddMembership, DropMembership and verify option
16 * MulticastOption.cs: Added argument checks. Save interfaceIndex that is
17 passed to .ctor, and removed MonoTODO. Renamed arguments to match MS.
18 Reset InterfaceIndex when LocalAddress is modified, and reset
19 LocalAddress when InterfaceIndex is modified.
20 * UdpClient.cs: Modified exception to more closely match MS. Fixed
21 (int, AddressFamily) .ctor to construct IPv6 endpoint when family is
22 InterNetworkV6. Added null check for multicastAddr to (IPAddress)
23 JoinMulticastGroup overload. In (int, IPAddress) and (IPAddress,
24 IPAddress) overloads of JoinMulticastGroup throw SocketException when
25 client is IPv4. Added null check for multicastAddr to (IPAddress, int),
26 overload, and moved JoinMulticastGroup call after argument checks.
27 * IPv6MulticastOption.cs: Renamed argument names to match MS. Added
28 null check to set_Group. Added range check to set_InterfaceIndex.
30 2009-06-27 Gonzalo Paniagua Javier <gonzalo@novell.com>
32 * Socket.cs: turn WSAEINVAL into ArgumentException.
34 2009-06-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
36 * Socket.cs: MS throws a SocketException in the byte[] overload when
39 2009-05-22 Sebastien Pouliot <sebastien@ximian.com>
41 * Socket_2_1.cs: Do not throw a SecurityException if the security
42 policy check fails in NET_2_1 but set the SocketError to AccessDenied
43 ensure the EndPoint has a valid policy before connecting.
44 * SocketAsyncEventArgs.cs: Don't recurse endlessly in SendCallback
45 and ReceiveCallback if the socket is not connected. Check for
46 AccessDenied in ConnectCallback (needed for the security policy
49 2009-05-14 Sebastien Pouliot <sebastien@ximian.com>
51 * Socket_2_1.cs: Add ConnectAsync support for NET_2_1 which will
52 ensure the EndPoint has a valid policy before connecting.
53 * SocketAsyncEventArgs.cs: Add support for IList<ArraySegment<byte>>
54 when sending. Add ConnectSocket for NET_2_1
56 2009-05-11 Gonzalo Paniagua Javier <gonzalo@novell.com>
60 * UdpClient.cs: use GetHostAddresses() instead of Resolve or
63 2009-05-11 Gonzalo Paniagua Javier <gonzalo@novell.com>
65 * UdpClient.cs: if possible, avoid DNS lookups when the host name is
66 an IP address. Related to bug #502866.
68 2009-04-30 Gonzalo Paniagua Javier <gonzalo@novell.com>
70 * Socket.cs: return the last error if a connect to multiple addresses
73 2009-04-22 Sebastien Pouliot <sebastien@ximian.com>
75 * Socket_2_1.cs: Use old-n-simple CheckProtocolSupport to implement
76 OSSupportsIP[v4|v6] for Moonlight (NET_2_1 only) so we can avoid
77 including a bunch of types (22) from System.Net.NetworkInformation
78 and drop the number of [SecuritySafeCritical] methods to audit (the
79 same 22) and [SecurityCritical] (8) beside getting a smaller
80 System.Net.dll assembly :)
82 2009-04-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
84 * Socket.cs: End* methods can only be called once per IAsyncResult.
87 2009-04-09 Sebastien Pouliot <sebastien@ximian.com>
89 * Socket.cs: Split socket class into two files (this one and the
90 new Socket_2_1.cs). This let us remove (some) existing #if in the
91 sources and avoid (a lot) of new ones for Moonlight.
92 * Socket_2_1.cs: Just enough of socket for NET_2_1. This helps
93 the tuner not to bring a lot of extra stuff (some visible)
95 * SocketAsyncEventArgs.cs: Ifdef out some cases for NET_2_1 so
96 Moonlight can use it's own (smaller) SocketAsyncOperation enum
98 2009-02-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
100 * Socket.cs: instead of clearing the sockets form the output and then
101 adding them back, we just remove the ones that have not been signaled.
102 Fixes bug #354090 and bug #476138.
104 2009-01-19 Gonzalo Paniagua Javier <gonzalo@novell.com>
106 * Socket.cs: don't throw when there's no ipv6 configuration.
108 2009-01-09 Dick Porter <dick@ximian.com>
110 * Socket.cs: Special case 0-length receive requests in the
111 BeginAccept overloads that wait for data, so they behave as the
112 non-waiting version. Seems to match MS behaviour, fixes bug
115 2009-01-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
117 * TcpClient.cs: use IPv6Any when the family is IPv6.
120 2008-12-30 Bill Holmes <billholmes54@gmail.com>
122 * Socket.cs (Accept_internal) : Changing the signature to pass
125 Code is contributed under MIT/X11 license.
127 2008-12-20 Miguel de Icaza <miguel@novell.com>
129 * SocketException.cs: Add missing API.
131 * SocketAsyncEventArgs.cs (Dispose): this has to be a public
132 member according to the specs.
134 2008-12-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
136 * Socket.cs: add a new ReceiveFrom_nocheck that does not throw an
137 exception in case of error.
139 2008-12-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
141 * Socket.cs: if Blocking is set, translate a WouldBlock into a
144 2008-12-03 Gonzalo Paniagua Javier <gonzalo@novell.com>
146 * UdpClient.cs: don't Poll() in Receive(), the call to ReceiveFrom
147 will block anyway. Fixes bug #455894.
149 2008-11-12 Gonzalo Paniagua Javier <gonzalo@novell.com>
151 * Socket.cs: mark the socket as not connected when there is a pending
152 error or exception about to be thrown.
155 2008-09-10 Bill Holmes <billholmes54@gmail.com>
157 * Socket.cs : Adding a comment to provide locations where
158 changes to MonoSocketAsyncResult need to be synced.
160 Code is contributed under MIT/X11 license.
162 2008-09-06 Atsushi Enomoto <atsushi@ximian.com>
164 * Socket.cs : (SocketAsyncResult) release byte buffer early so that
165 it does not have to store extra data in pool. Fixed bug #397627.
167 2008-07-31 Jb Evain <jbevain@novell.com>
170 * NetworkStream.cs: cleanup for NET_2_1
172 * SocketException_2_1.cs: new specific version for NET_2_1.
174 2008-06-19 Dick Porter <dick@ximian.com>
176 * Socket.cs: Implement generic Send() and Receive() methods.
179 2008-06-12 Stephane Delcroix <sdelcroix@novell.com>
181 * Socket.cs: minimal changes to run in the 2.1 profile
183 2008-06-11 Stephane Delcroix <sdelcroix@novell.com>
185 * SocketAsyncEventArgs.cs: catch SocketException in ConnectAsync
186 and set the SocketError accordingly.
188 2008-05-09 Marek Habersack <mhabersack@novell.com>
190 * SocketAsyncEventArgs.cs: implemented support for executing
191 asynchronous socket actions, called from the new xxxxAsync methods
192 in Socket. The asynchronous operations do not use the ThreadPool
193 as I can't get the sample applications to work (send/receive
194 callbacks don't work) - it may change in the future.
196 * Socket.cs: implemented several xxxxAsync 2.0sp1 methods. The
197 ones not implemented for now are: ReceiveMessageFromAsync and
198 SendPacketsAsync. AcceptAsync doesn't perform the check for the
199 buffer size for now - need to implement runtime support for that.
200 Made several methods internal, so that they can be accessed from
201 SocketAsyncEventArgs code.
203 2008-05-08 Marek Habersack <mhabersack@novell.com>
205 * SocketAsyncOperation.cs, SendPacketsElement.cs,
206 SocketAsyncEventArgs.cs: added initial implementations for
207 2.0SP1/3.5 classes used in the (to be implemented) new xxxAsync
208 methods of the Socket class.
210 2008-04-17 Miguel de Icaza <miguel@novell.com>
212 * NetworkStream.cs: Throw an IOException if the socket is not
213 connected, not an ArgumentException.
215 Fixes #371923, it is also the way its documented on MSDN.
217 2008-04-13 Jb Evain <jbevain@novell.com>
219 * Socket.cs: ifdef out the Sys.Config part for the
221 Merged from the Moonlight 2 branch.
223 Wed Mar 12 20:06:07 CET 2008 Paolo Molaro <lupus@ximian.com>
225 * Socket.cs: add a static ctor so that ipv4Supported and ipv6Supported
226 are initialized (they are used by the runtime).
228 2008-02-01 Dick Porter <dick@ximian.com>
230 * TcpClient.cs: If the Connect fails (when given an array of
231 addresses) leave the socket object in a usable state. Fixes bug
234 2007-11-13 Atsushi Enomoto <atsushi@ximian.com>
236 * NetworkStream.cs : in 2.0 Close() is not needed and does not exist.
238 2007-11-01 Miguel de Icaza <miguel@novell.com>
240 * Socket.cs: Do not set the Send and Receive buffer sizes for the
241 socket to the defaults set on Windows, they kill our performance.
243 Thanks to Zoltan Varga for tracking the performance issue down.
246 2007-10-30 Dick Porter <dick@ximian.com>
248 * UdpClient.cs: Don't set the multicast option twice. Fixes bug
251 2007-10-21 Robert Jordan <robertj@gmx.net>
253 * Socket.cs: Remove GetHashCode override from the NET_2_0
254 profile. Add LAMESPEC comment. Fixes bug #325113.
256 2007-09-22 Gert Driesen <drieseng@users.sourceforge.net>
258 * Socket.cs: Removed unused method.
260 2007-08-02 Dick Porter <dick@ximian.com>
262 * Socket.cs: Patch from Brian Nickel (brian.nickel@gmail.com) to
263 improve EndPoint handling.
265 2007-07-08 Gert Driesen <drieseng@users.sourceforge.net>
267 * Socket.cs: Code formatting. Marked not implemented methods as TODO.
268 Removed extra spaces.
270 2007-07-04 Dick Porter <dick@ximian.com>
272 * Socket.cs: Don't set DontFragment by default for IPv6 sockets.
275 2007-05-16 Adar Wesley <adarw@mainsoft.com>
277 * Socket.jvm.cs: added missing methods EndDisconnect, IOControl,
278 Send 2.0 overloads, Receive 2.0 overloads, ReceiveMessageFrom,
279 BeginReceiveMessageFrom, EndReceiveMessageFrom,
280 EndAccept 2.0 overloads, BeginSend, EndSend, BeginReceive,
281 EndReceive, SendFile, BeginSendFile, EndSendFile, Disconnect,
284 2007-05-09 Igor Zelmanovich <igorz@mainsoft.com>
286 * Socket.jvm.cs: Handle property throws NotImplementedException.
288 2007-05-09 Igor Zelmanovich <igorz@mainsoft.com>
294 added MonoNotSupported attribute for TARGATE_JVM.
296 2007-03-11 Gert Driesen <drieseng@users.sourceforge.net>
298 * TcpClient.cs: Do not initialize network stream in Connect. In
299 Dispose, only nullify client if network stream was not obtained.
302 2007-01-30 Ilya Kharmatsky <ilyak -at- mainsoft.com>
304 * Socket.jvm.cs: additional stubs for net_2_0 properties,
305 bug fixes (EnsureStillUsable method inserted)
307 2007-01-28 Ilya Kharmatsky <ilyak -at- mainsoft.com>
309 * Socket.jvm.cs: added stubs for net_2_0 properties and methods.
311 2007-01-26 Dick Porter <dick@ximian.com>
313 * Socket.cs: SupportsIPv6 is obsolete in the 2.0 profile. Stub
314 out BeginReceiveMessageFrom(), BeginSendFile(),
315 EndReceiveMessageFrom(), EndSendFile(), ReceiveMessageFrom(), and
318 * IPPacketInformation.cs: New in the 2.0 profile
320 * SocketFlags.cs: Remove useless (and empty) inline documentation,
323 * TcpListener.cs: Mark Server as public in the 2.0 profile.
325 * UdpClient.cs: Mark Dispose(bool) as protected in the 2.0
328 System.Net.Sockets should now be 2.0-complete.
330 2007-01-26 Dick Porter <dick@ximian.com>
332 * Socket.cs: There's no point checking the SO_ERROR status of a
333 socket after poll() or select() if we already know that connected
336 2007-01-24 Dick Porter <dick@ximian.com>
339 * SocketInformationOptions.cs:
340 * TransmitFileOptions.cs: Fix enum values
342 * AddressFamily.cs: Not Serializable in the 2.0 profile
344 2007-01-24 Dick Porter <dick@ximian.com>
346 * NetworkStream.cs: 2.0 profile updates, based on a patch by
347 Sridhar Kulkarni (sridharkulkarni@gmail.com)
349 2007-01-23 Dick Porter <dick@ximian.com>
352 * TcpClient.cs: 2.0 profile updates, based on a patch by Sridhar
353 Kulkarni (sridharkulkarni@gmail.com)
355 2007-01-22 Miguel de Icaza <miguel@novell.com>
357 * Socket.cs: Move the throw new NotImplementedException ()
358 elsewhere to prevent Moma reports.
360 2007-01-20 Dick Porter <dick@ximian.com>
362 * Socket.cs(SocketDefaults): Catch and ignore any SocketExceptions
363 thrown from setting default socket options - some platforms might
364 not support a particular default we're trying to set.
366 2007-01-11 Dick Porter <dick@ximian.com>
369 * SocketInformation.cs:
371 * UdpClient.cs: 2.0 profile updates, loosely based on a patch by
374 * SocketInformationOptions.cs:
375 * TransmitFileOptions.cs: Implemented by Sridhar Kulkarni
376 (sridharkulkarni@gmail.com)
378 Wed Dec 13 12:04:02 CET 2006 Paolo Molaro <lupus@ximian.com>
380 * Socket.cs: stub ReceiveBufferSize and SendBufferSize to
381 get ironpython to compile.
383 2006-11-23 Dick Porter <dick@ximian.com>
385 * Socket.cs: Only set Connected = true in Poll() and Select() if
386 the socket error status is 0. Fixes bug 79878.
388 2006-09-28 Andrew Skiba <andrews@mainsoft.com>
390 * Socket.cs,NetworkStream.cs,SocketException.cs: TARGET_JVM
392 2006-09-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
394 * Socket.cs: update the SocketOperation enum.
396 2006-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
398 * Socket.cs: replace hardcoded error numbers with the SocketError
399 values. When ReceiveTimeout is set on a blocking socket, correctly
400 report timeouts in the generated exception.
402 * SocketException.cs: add new internal ctor (int, string).
404 2006-08-12 Miguel de Icaza <miguel@novell.com>
406 * Socket.cs (NoDelay): Implement.
408 2006-06-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
410 * Socket.cs: patch from Sanghyeon Seo that implements
411 (Send|Receive)Timeout for 2.0.
412 * MulticastOption.cs: more 2.0 stuff.
414 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
416 * Socket.cs : use ConfigurationManager.GetSection() under NET_2_0.
417 Also make sure to avoid NRE.
419 2006-06-24 Zoltan Varga <vargaz@gmail.com>
421 * Socket.cs: Add stubs for net 2.0 SendTimeout and ReceiveTimeout properties.
423 2006-06-20 Zoltan Varga <vargaz@gmail.com>
425 * ProtocolType.cs SocketOptionName.cs: Add missing net 2.0 fields.
427 2006-05-30 Gert Driesen <drieseng@users.sourceforge.net>
429 * NetworkStream.cs: Marked Dispose (bool) virtual on 1.x profile.
431 2006-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
434 * SocketError.cs: implemented Reseive/Send overloads that do not throw
435 in case of error. Patch by Tomi Valkeinen.
437 2006-03-11 Miguel de Icaza <miguel@novell.com>
439 * NetworkStream.cs (Dispose): Use the right signature depending on
440 the profile being built.
442 2006-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
444 * Socket.cs: pass something not empty to the unixep ctor.
446 2006-03-03 Dick Porter <dick@ximian.com>
448 * UdpClient.cs: Fix IPv6 family check. Fixes bug 77689.
450 2006-02-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
452 * TcpClient.cs: when the socket is not connected, don't try to set the
453 socket options, as they are ignored on linux. Wait until Connect
454 succeeds and then apply the options.
456 2006-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
458 * Socket.cs: added a missing overload for SetSocketOption.
460 2006-01-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
462 * Socket.cs: use the 2.0 configuration classes when checking for IPv6
465 2006-01-04 Sebastien Pouliot <sebastien@ximian.com>
467 * TcpClient.cs: The Client property is public in 2.0 while it was
468 protected in earlier release. Fix bug #77048.
470 2005-12-07 Robert Jordan <robertj@gmx.net>
472 * SocketError.cs: Added.
473 * SocketException: Implemented SocketErrorCode. Fixes bug #76915.
475 2005-10-11 Dick Porter <dick@ximian.com>
477 * Socket.cs: Don't call connect(2) twice for non-blocking sockets,
478 it breaks on macos (and probably other bsd-based stacks too,) use
479 poll() and getsockopt() to check if it worked.
481 2005-09-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
483 * Socket.cs: add checks for 'disposed' all over. Fixes bug #76249.
485 2005-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
487 * TcpClient.cs: patch by Hans Kratz that uses an integer when setting
488 NoDelay instead of a bool, which is only handled in 2.0.
490 2005-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
492 * Socket.cs: disallow connecting to .Any addresses. Fixes bug #75154.
494 2005-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
496 * Socket.cs: adapted Select to the new Select_internal that uses poll()
497 instead of select(). Managed part of the fix for bug #71203.
499 2005-05-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
501 * Socket.cs: apply the same hack on blocking Connect calls as the one
504 2005-05-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
506 * Socket.cs: see bug #74842, which is fixed with this patch for details
507 and test cases on the blocking behavior of accept() when close() is
508 called from another thread. The solution applied is to Abort the thread
509 that is blocking in Accept_internal() when someone calls Close (), then
510 reset the abort state if the socket is disposed and return the same
511 error as MS (10004 - interrupted).
513 2005-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
515 * Socket.cs: match MS behavior on SetSocketOption with a boolean
516 argument. MS 1.1 throws an ArgumentException, but 2.0 turns true/false
517 into 1/0 and works fine. Fixes bug #71753. Added checks for disposed
518 in the 3 SetSocketOption.
520 2005-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
522 * Socket.cs: if there are outstanding aio requests and one of them gets
523 an ObjectDisposedException, throw the same exception for the rest.
525 2005-05-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
527 * Socket.cs: removed hack added to fix bug #53229 (more than a year ago)
528 that kept sockets opened until all AIO operations where finished. If
529 the socket is closed, Receive returns 0 in EndReceive, the rest throw
530 the ObjectDisposedException. Set the socket handle to -1 when closing.
532 2005-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
534 * Socket.cs: Begin/End Send/SendTo guarantee that all bytes are written
535 or an exception is thrown. Fixes bug #74475.
537 2005-04-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
539 * Socket.cs: no need for locking in Worker. The actual read / write for
540 Receive / Send is performed in the runtime time.
542 2005-04-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
544 * Socket.cs: added a 'blocking' field that is passed to the runtime.
546 2005-04-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
548 * Socket.cs: invoke the callback after scheduling the next request for
549 the socket. Fixes bug #74539.
551 2005-04-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
553 * Socket.cs: update socket connected status in an async request finishes
554 synchronously. Use 'callback' instead of 'real_callback' field, which is
557 2005-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
559 * Socket.cs: added SocketOperation enum and 2 new fields to
560 SocketAsyncResult that are used by the runtime. Asynchronous read/write
561 are serialized so that only 1 of each kind is really 'active'.
562 Handle non-blocking connects in BeginConnect instead of doing 2 Poll()
565 * NetworkStream.cs: better message for the exception.
567 2005-04-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
569 * Socket.cs: remove unused async IO code.
571 2005-03-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
573 * Socket.cs: don't Poll/block in Connect aither.
575 2005-02-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
577 * Socket.cs: don't block on Accept if the socket is non-blocking.
578 Fixes bug #73053. Patch by Ankit Jain.
580 2005-02-23 Dick Porter <dick@ximian.com>
582 * UdpClient.cs: Set the Broadcast option, as apparently the MS
583 runtime defaults make UDP sockets broadcastable.
585 2004-12-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
587 * Socket.cs: for Receive*/Send*, don't set the connected status to false
588 when the error is EINPROGRESS or EWOULDBLOCK.
590 2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
592 * NetworkStream.cs: Write should ensure that writes all the contents
593 of the buffer. Fixes bug #70123. Besos para Miguelito.
595 2004-10-14 Dick Porter <dick@ximian.com>
597 * Socket.cs (Sockets ): Set Accept()ed socket blocking status to
598 be the same as the listening socket. This follows MS behaviour.
600 2004-08-04 Dick Porter <dick@ximian.com>
602 * Socket.cs: Update Connected state in Select and Poll; this is
603 when we find out that non-blocking Connects succeed. Fixes bug
606 2004-07-28 Dick Porter <dick@ximian.com>
608 * Socket.cs: ReceiveFrom might not return a valid EndPoint. Patch
609 by Nick Vaughan (dev@6wardlaw.freeserve.co.uk), fixes bug 61608.
611 2004-07-15 Dick Porter <dick@ximian.com>
613 * Socket.cs: Don't try and dereference a null array in Select()
614 (possible if a descriptor list of length 0 was passed.) Patch by
615 Nick Vaughan (dev@6wardlaw.freeserve.co.uk), fixes bug 61595.
617 2004-07-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
619 * Socket.cs: if'ed RemoveReferences calls.
621 2004-07-09 Dick Porter <dick@ximian.com>
623 * Socket.cs: Slight tweak to allow unknown objects to be returned
624 by GetSocketOption().
626 2004-06-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
628 * Socket.cs: connect on non-blocking sockets returns EINPROGRESS. Fixes
631 2004-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
633 * Socket.cs: wrong error code in connect and accept. EWOULDBLOCK is
634 10035. Fixes bug #60563.
636 2004-06-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
638 * Socket.cs: fixed Accept for non-blocking sockets.
640 2004-06-10 Gert Driesen <drieseng@users.sourceforge.net>
642 * LingerOption.cs: marked field private to fix API signature
643 * MulticastOption.cs: marked field private to fix API signature
645 2004-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
647 * Socket.cs: throw ArgumentNullException if all the list are null OR
648 empty. Fixes bug #59632.
650 2004-05-21 Patrik Torstensson <totte@hiddenpeaks.com>
652 * TcpListener.cs: Fixes a lot of the problems with remoting nunit tests.
654 (AcceptTcpClient): Don't create TcpClient before a
655 connection is accepted.
657 (LocalEndPoint): Use Server LocalEndPoint if connected
658 otherwise use endpoint from ctor.
660 (Init): Save end point, not server endpoint. This did
661 cause TcpListener to ignore port sent via constructor.
663 (Pending): Fixed wait time (method should return directly)
665 (Start): Moved Bind here instead of Init method; old method
666 caused us to bind ports even if the listener was stopped.
668 (Stop): Null server when stopping
670 2004-05-13 Dick Porter <dick@ximian.com>
673 * TcpClient.cs: Public API fixes
675 2004-05-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
677 * Socket.cs: fixed Connect for non-blocking sockets. Closes bug #58169.
679 2004-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
681 * Socket.cs: fix for BeginConnect and non-blocking sockets.
683 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
685 * Socket.cs: Use assembly name const to load Mono.Posix.
687 2004-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
689 * Socket.cs: only enable socket AIO if MONO_ENABLE_SOCKET_AIO is there.
690 I will remove this once THE bug is hunted.
692 2004-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
694 * Socket.cs: added support for unmanaged asynchronous IO. Speed up
696 * UdpClient.cs: fixed Dispose so that it only closes the socket when
699 2004-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
701 * Socket.cs: added GetSupportsAsync and Poll_internal internal calls.
702 Cleaned up Worker class: moved fields to SocketAsyncResult and use Poll
703 when the socket is non-blocking before getting EWOULDBLOCK error.
705 2004-04-08 Dick Porter <dick@ximian.com>
707 * Socket.cs: Rearrange the internal calls so that the exceptions
708 are thrown from managed code
710 2004-03-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
712 * Socket.cs: when Dispose (bool) is called from the finalizer, always
713 do the cleanup. Fixes yet another nullref with xsp.
715 2004-02-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
717 * Socket.cs: implemented IOControl.
719 2004-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
721 * Socket.cs: use the threadpool for asynchronous calls instead of
722 creating new threads.
724 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
726 * Socket.cs: added locks around waithandle assign and comparison in
727 class Worker. Handle other exceptions than SocketException for
728 non-blocking sockets.
730 2004-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
732 * Socket.cs: handle WSAEWOULDBLOCK for non-blocking sockets. Fixes
733 bug #53168. Avoid the creation of the ManualResetEvent in class Worker
736 2004-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
738 * Socket.cs: if we have a pending async event, delay socket closing
739 until EndX is called. Fixes bug #53229. Check parameters and if the
740 socket has been disposed. Implemented IDisposable explicitly. The
741 threads created have IsBackground = true now.
743 2004-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
745 * Socket.cs: patch from Brad Fitzpatrick <brad@danga.com> episode 2.
747 2003-12-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
749 * Socket.cs: fix for several asynchronous methods to delay exception
750 throwing. Patch by Brad Fitzpatrick <brad@danga.com>.
752 2003-12-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
754 * TcpListener.cs: get the LocalEndPoint from the socket after binding.
757 2003-10-20 Miguel de Icaza <miguel@ximian.com>
759 * TcpClient.cs: Fix void Dispose (bool disposing) to follow the
760 pattern. It was shutting down the managed resources even in the
761 finalizer case, it should only do that when called from
764 2003-09-11 Lluis Sanchez Gual <lluis@ximian.com>
766 * NetworkStream.cs: Added [In,Out] attributes to Read method.
768 2003-08-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
770 * TcpListener.cs: various fixes to make the new tests pass. Closes
773 2003-08-10 Miguel de Icaza <miguel@ximian.com>
775 * UdpClient.cs (Receive): Fix Bug 45633; We should do a blocking
776 call until a datagram is arrives from the remote host. This
777 removes the 512 "magic" buffer size when we did not have any data.
779 2003-07-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
782 * Socket.cs: fixed array boundary checks. 0 sized arrays are allowed.
784 2003-07-18 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
786 * Socket.cs: Added GetHashCode method
788 2003-07-14 Jerome Laban <jlaban@wanadoo.fr>
792 * SocketOptionLevel.cs:
799 * IPv6MulticastOption.cs: Added for IPv6 support.
801 2003-05-16 Dick Porter <dick@ximian.com>
803 * Socket.cs: Use Mono.Posix.UnixEndPoint if its available
805 2003-05-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
807 * MulticastOption.cs: patch by Jerome Laban included in bug #42393.
809 2003-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
812 (Select): don't create arrays if not needed.
813 (Poll): call Select_internal directly.
815 Warning: you need an up to date runtime for this to work!
817 2003-03-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
819 * UdpClient.cs: don't bind the socket unless .ctor (IPEndPoint) is used.
820 Added more checks and throws.
821 Small fixes in Send to avoid duplicating the buffer.
822 Moved CheckIfDisposed calls to the start of the methods instead of doing
823 the check inside a finally clause.
825 2003-03-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
828 (SendTo): fix from Jerome Laban <jlaban@wanadoo.fr>.
830 2003-02-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
832 * Socket.cs: patch from Elan Feingold <efeingold@mn.rr.com>. Fixes
833 NullReferenceException when the callback is null.
835 2003-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
837 * NetworkStream.cs: allow 0 size array in Write.
839 2003-02-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
841 * Socket.cs: make Worker.Connect and Receive work with non-blocking
842 sockets. May be Receive* and Send* in Worker need to do the same. I'll
843 wait for bug reports. Set IsCompleted to true before invoking the end
844 callback. Fixes bug #38136.
846 2003-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
848 * NetworkStream.cs: the check for disposed should not be done in the
851 2003-01-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
853 * UdpClient.cs: fixed bug #36226.
855 2002-11-13 Dick Porter <dick@ximian.com>
857 * Socket.cs: Only close the socket in one place, ie the Dispose
858 method. Fixes bug 32054.
860 2002-11-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
862 * Socket.cs: offset == size == 0 it's ok in Send ().
864 2002-11-03 Phillip Pearson <pp@myelin.co.nz>
866 * TcpClient.cs: Fixed SetTcpClient() to pass through to the Client
867 property, which now sets stream to null (it's set by GetStream()). This
868 should make GetStream() work on a TcpClient which has had the socket set
869 by assignment to the Client property, not only one that has been created
870 by TcpListener.AcceptTcpClient().
872 2002-10-08 Dick Porter <dick@ximian.com>
875 * NetworkStream.cs: Bounds checking fixes, and better exception
876 texts. Changes by timothyjmills@hotmail.com (Timothy J. Mills).
878 2002-10-03 Dick Porter <dick@ximian.com>
880 * TcpClient.cs: NoDelay is a TCP option, not Socket
882 2002-09-16 Miguel de Icaza <miguel@ximian.com>
884 * SocketFlags.cs: Add missing enumeration.
886 * UdpClient.cs: Make Dispose private.
888 2002-08-20 Dick Porter <dick@ximian.com>
890 * Socket.cs: Fix deadlock when the AsyncResult callback calls
891 End*(). Set the async request's worker property so it can return
892 results. These two fixes combined fix bug 28092.
894 2002-06-24 Dick Porter <dick@ximian.com>
896 * Socket.cs: Make SetSocketOption cope with boolean values (they
897 are passed as objects, not the ints the runtime was expecting)
899 2002-05-17 Lawrence Pit <loz@cable.a2000.nl>
900 * TcpListener.cs: Renamed LocalEndPoint to LocalEndpoint
901 * NetworkStream.cs, UdpClient.cs and TcpClient.cs: modified disposable
902 routines, added checks for disposed state.
903 * UdpClient.cs: commented out GetHashCode and Equals as it's not
904 overriden in ms.net implementation.
906 2002-05-17 Jaroslaw Kowalski <jarek@atm.com.pl>
907 * TcpClient.cs: fixed SetTcpClient so that
908 TcpListener.AcceptTcpClient works and allows
909 you to call GetStream() on its result
911 2002-04-24 Dick Porter <dick@ximian.com>
913 * Socket.cs (Poll): Give correct argument to Select(), as spotted
914 by Jaroslaw Kowalski <jarek@atm.com.pl>
916 2002-04-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
918 * UdpClient.cs: implemented.
920 2002-04-02 Dick Porter <dick@ximian.com>
922 * TcpListener.cs: in Start(), set the socket listen backlog value
923 to a sane value (noticed by Jonathan Stowe <gellyfish@gellyfish.com>)
925 2002-02-13 Dick Porter <dick@ximian.com>
927 * Socket.cs: Implemenent Select, Blocking, Connected,
928 GetSocketOption, Poll, SetSocketOption and Shutdown
930 * MulticastOption.cs:
931 * LingerOption.cs: Delete override methods that don't need to be
934 2002-01-23 Miguel de Icaza <miguel@ximian.com>
936 * NetworkStream.cs: Implement class.
938 2002-01-23 Dick Porter <dick@ximian.com>
940 * SocketException.cs: Implemented
942 * Socket.cs: Implemented most methods
944 * LingerOption.cs: Made compile
946 * AddressFamily.cs: Removed empty auto-generated comments
948 2002-01-17 Miguel de Icaza <miguel@ximian.com>
950 * SocketException.cs: Reimplemented.
952 2002-01-06 Ravi Pratap <ravi@ximian.com>
954 * ChangeLog : Add to this directory.
956 * SocketException.cs, TcpClient.cs, TcpListener.cs : MonoTODO
957 attribute decoration.