ChangeLog 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949
  1. 2009-06-28 Gert Driesen <[email protected]>
  2. * Socket.cs: In GetSocketOption, throw SocketException when (byte [])
  3. option value is null. Use SocketError fields instead of using "magic"
  4. number. In SetSocketOption (SocketOptionLevel, SocketOptionName, object)
  5. only accept Linger, AddMembership, DropMembership and verify option
  6. value.
  7. * MulticastOption.cs: Added argument checks. Save interfaceIndex that is
  8. passed to .ctor, and removed MonoTODO. Renamed arguments to match MS.
  9. Reset InterfaceIndex when LocalAddress is modified, and reset
  10. LocalAddress when InterfaceIndex is modified.
  11. * UdpClient.cs: Modified exception to more closely match MS. Fixed
  12. (int, AddressFamily) .ctor to construct IPv6 endpoint when family is
  13. InterNetworkV6. Added null check for multicastAddr to (IPAddress)
  14. JoinMulticastGroup overload. In (int, IPAddress) and (IPAddress,
  15. IPAddress) overloads of JoinMulticastGroup throw SocketException when
  16. client is IPv4. Added null check for multicastAddr to (IPAddress, int),
  17. overload, and moved JoinMulticastGroup call after argument checks.
  18. * IPv6MulticastOption.cs: Renamed argument names to match MS. Added
  19. null check to set_Group. Added range check to set_InterfaceIndex.
  20. 2009-06-27 Gonzalo Paniagua Javier <[email protected]>
  21. * Socket.cs: turn WSAEINVAL into ArgumentException.
  22. 2009-06-26 Gonzalo Paniagua Javier <[email protected]>
  23. * Socket.cs: MS throws a SocketException in the byte[] overload when
  24. the value is null.
  25. 2009-05-22 Sebastien Pouliot <[email protected]>
  26. * Socket_2_1.cs: Do not throw a SecurityException if the security
  27. policy check fails in NET_2_1 but set the SocketError to AccessDenied
  28. ensure the EndPoint has a valid policy before connecting.
  29. * SocketAsyncEventArgs.cs: Don't recurse endlessly in SendCallback
  30. and ReceiveCallback if the socket is not connected. Check for
  31. AccessDenied in ConnectCallback (needed for the security policy
  32. check in NET_2_1).
  33. 2009-05-14 Sebastien Pouliot <[email protected]>
  34. * Socket_2_1.cs: Add ConnectAsync support for NET_2_1 which will
  35. ensure the EndPoint has a valid policy before connecting.
  36. * SocketAsyncEventArgs.cs: Add support for IList<ArraySegment<byte>>
  37. when sending. Add ConnectSocket for NET_2_1
  38. 2009-05-11 Gonzalo Paniagua Javier <[email protected]>
  39. * TcpClient.cs:
  40. * Socket.cs:
  41. * UdpClient.cs: use GetHostAddresses() instead of Resolve or
  42. GetHostEntry.
  43. 2009-05-11 Gonzalo Paniagua Javier <[email protected]>
  44. * UdpClient.cs: if possible, avoid DNS lookups when the host name is
  45. an IP address. Related to bug #502866.
  46. 2009-04-30 Gonzalo Paniagua Javier <[email protected]>
  47. * Socket.cs: return the last error if a connect to multiple addresses
  48. fails.
  49. 2009-04-22 Sebastien Pouliot <[email protected]>
  50. * Socket_2_1.cs: Use old-n-simple CheckProtocolSupport to implement
  51. OSSupportsIP[v4|v6] for Moonlight (NET_2_1 only) so we can avoid
  52. including a bunch of types (22) from System.Net.NetworkInformation
  53. and drop the number of [SecuritySafeCritical] methods to audit (the
  54. same 22) and [SecurityCritical] (8) beside getting a smaller
  55. System.Net.dll assembly :)
  56. 2009-04-21 Gonzalo Paniagua Javier <[email protected]>
  57. * Socket.cs: End* methods can only be called once per IAsyncResult.
  58. Bug #466031 fixed.
  59. 2009-04-09 Sebastien Pouliot <[email protected]>
  60. * Socket.cs: Split socket class into two files (this one and the
  61. new Socket_2_1.cs). This let us remove (some) existing #if in the
  62. sources and avoid (a lot) of new ones for Moonlight.
  63. * Socket_2_1.cs: Just enough of socket for NET_2_1. This helps
  64. the tuner not to bring a lot of extra stuff (some visible)
  65. into Moonlight.
  66. * SocketAsyncEventArgs.cs: Ifdef out some cases for NET_2_1 so
  67. Moonlight can use it's own (smaller) SocketAsyncOperation enum
  68. 2009-02-17 Gonzalo Paniagua Javier <[email protected]>
  69. * Socket.cs: instead of clearing the sockets form the output and then
  70. adding them back, we just remove the ones that have not been signaled.
  71. Fixes bug #354090 and bug #476138.
  72. 2009-01-19 Gonzalo Paniagua Javier <[email protected]>
  73. * Socket.cs: don't throw when there's no ipv6 configuration.
  74. 2009-01-09 Dick Porter <[email protected]>
  75. * Socket.cs: Special case 0-length receive requests in the
  76. BeginAccept overloads that wait for data, so they behave as the
  77. non-waiting version. Seems to match MS behaviour, fixes bug
  78. 464201.
  79. 2009-01-06 Gonzalo Paniagua Javier <[email protected]>
  80. * TcpClient.cs: use IPv6Any when the family is IPv6.
  81. Bug #462688 fixed.
  82. 2008-12-30 Bill Holmes <[email protected]>
  83. * Socket.cs (Accept_internal) : Changing the signature to pass
  84. the blocking state.
  85. Code is contributed under MIT/X11 license.
  86. 2008-12-20 Miguel de Icaza <[email protected]>
  87. * SocketException.cs: Add missing API.
  88. * SocketAsyncEventArgs.cs (Dispose): this has to be a public
  89. member according to the specs.
  90. 2008-12-20 Gonzalo Paniagua Javier <[email protected]>
  91. * Socket.cs: add a new ReceiveFrom_nocheck that does not throw an
  92. exception in case of error.
  93. 2008-12-20 Gonzalo Paniagua Javier <[email protected]>
  94. * Socket.cs: if Blocking is set, translate a WouldBlock into a
  95. TimedOut.
  96. 2008-12-03 Gonzalo Paniagua Javier <[email protected]>
  97. * UdpClient.cs: don't Poll() in Receive(), the call to ReceiveFrom
  98. will block anyway. Fixes bug #455894.
  99. 2008-11-12 Gonzalo Paniagua Javier <[email protected]>
  100. * Socket.cs: mark the socket as not connected when there is a pending
  101. error or exception about to be thrown.
  102. Bug #443346 fixed.
  103. 2008-09-10 Bill Holmes <[email protected]>
  104. * Socket.cs : Adding a comment to provide locations where
  105. changes to MonoSocketAsyncResult need to be synced.
  106. Code is contributed under MIT/X11 license.
  107. 2008-09-06 Atsushi Enomoto <[email protected]>
  108. * Socket.cs : (SocketAsyncResult) release byte buffer early so that
  109. it does not have to store extra data in pool. Fixed bug #397627.
  110. 2008-07-31 Jb Evain <[email protected]>
  111. * Socket.cs
  112. * NetworkStream.cs: cleanup for NET_2_1
  113. * SocketException_2_1.cs: new specific version for NET_2_1.
  114. 2008-06-19 Dick Porter <[email protected]>
  115. * Socket.cs: Implement generic Send() and Receive() methods.
  116. Fixes bug 395168.
  117. 2008-06-12 Stephane Delcroix <[email protected]>
  118. * Socket.cs: minimal changes to run in the 2.1 profile
  119. 2008-06-11 Stephane Delcroix <[email protected]>
  120. * SocketAsyncEventArgs.cs: catch SocketException in ConnectAsync
  121. and set the SocketError accordingly.
  122. 2008-05-09 Marek Habersack <[email protected]>
  123. * SocketAsyncEventArgs.cs: implemented support for executing
  124. asynchronous socket actions, called from the new xxxxAsync methods
  125. in Socket. The asynchronous operations do not use the ThreadPool
  126. as I can't get the sample applications to work (send/receive
  127. callbacks don't work) - it may change in the future.
  128. * Socket.cs: implemented several xxxxAsync 2.0sp1 methods. The
  129. ones not implemented for now are: ReceiveMessageFromAsync and
  130. SendPacketsAsync. AcceptAsync doesn't perform the check for the
  131. buffer size for now - need to implement runtime support for that.
  132. Made several methods internal, so that they can be accessed from
  133. SocketAsyncEventArgs code.
  134. 2008-05-08 Marek Habersack <[email protected]>
  135. * SocketAsyncOperation.cs, SendPacketsElement.cs,
  136. SocketAsyncEventArgs.cs: added initial implementations for
  137. 2.0SP1/3.5 classes used in the (to be implemented) new xxxAsync
  138. methods of the Socket class.
  139. 2008-04-17 Miguel de Icaza <[email protected]>
  140. * NetworkStream.cs: Throw an IOException if the socket is not
  141. connected, not an ArgumentException.
  142. Fixes #371923, it is also the way its documented on MSDN.
  143. 2008-04-13 Jb Evain <[email protected]>
  144. * Socket.cs: ifdef out the Sys.Config part for the
  145. 2.1 profile.
  146. Merged from the Moonlight 2 branch.
  147. Wed Mar 12 20:06:07 CET 2008 Paolo Molaro <[email protected]>
  148. * Socket.cs: add a static ctor so that ipv4Supported and ipv6Supported
  149. are initialized (they are used by the runtime).
  150. 2008-02-01 Dick Porter <[email protected]>
  151. * TcpClient.cs: If the Connect fails (when given an array of
  152. addresses) leave the socket object in a usable state. Fixes bug
  153. 355473.
  154. 2007-11-13 Atsushi Enomoto <[email protected]>
  155. * NetworkStream.cs : in 2.0 Close() is not needed and does not exist.
  156. 2007-11-01 Miguel de Icaza <[email protected]>
  157. * Socket.cs: Do not set the Send and Receive buffer sizes for the
  158. socket to the defaults set on Windows, they kill our performance.
  159. Thanks to Zoltan Varga for tracking the performance issue down.
  160. The bug was #325032
  161. 2007-10-30 Dick Porter <[email protected]>
  162. * UdpClient.cs: Don't set the multicast option twice. Fixes bug
  163. 324033.
  164. 2007-10-21 Robert Jordan <[email protected]>
  165. * Socket.cs: Remove GetHashCode override from the NET_2_0
  166. profile. Add LAMESPEC comment. Fixes bug #325113.
  167. 2007-09-22 Gert Driesen <[email protected]>
  168. * Socket.cs: Removed unused method.
  169. 2007-08-02 Dick Porter <[email protected]>
  170. * Socket.cs: Patch from Brian Nickel ([email protected]) to
  171. improve EndPoint handling.
  172. 2007-07-08 Gert Driesen <[email protected]>
  173. * Socket.cs: Code formatting. Marked not implemented methods as TODO.
  174. Removed extra spaces.
  175. 2007-07-04 Dick Porter <[email protected]>
  176. * Socket.cs: Don't set DontFragment by default for IPv6 sockets.
  177. Fixes bug 81985.
  178. 2007-05-16 Adar Wesley <[email protected]>
  179. * Socket.jvm.cs: added missing methods EndDisconnect, IOControl,
  180. Send 2.0 overloads, Receive 2.0 overloads, ReceiveMessageFrom,
  181. BeginReceiveMessageFrom, EndReceiveMessageFrom,
  182. EndAccept 2.0 overloads, BeginSend, EndSend, BeginReceive,
  183. EndReceive, SendFile, BeginSendFile, EndSendFile, Disconnect,
  184. DuplicateAndClose
  185. 2007-05-09 Igor Zelmanovich <[email protected]>
  186. * Socket.jvm.cs: Handle property throws NotImplementedException.
  187. 2007-05-09 Igor Zelmanovich <[email protected]>
  188. * NetworkStream.cs:
  189. * TcpClient.cs:
  190. * TcpListener.cs:
  191. * UdpClient.cs:
  192. added MonoNotSupported attribute for TARGATE_JVM.
  193. 2007-03-11 Gert Driesen <[email protected]>
  194. * TcpClient.cs: Do not initialize network stream in Connect. In
  195. Dispose, only nullify client if network stream was not obtained.
  196. Fixes bug #81105.
  197. 2007-01-30 Ilya Kharmatsky <ilyak -at- mainsoft.com>
  198. * Socket.jvm.cs: additional stubs for net_2_0 properties,
  199. bug fixes (EnsureStillUsable method inserted)
  200. 2007-01-28 Ilya Kharmatsky <ilyak -at- mainsoft.com>
  201. * Socket.jvm.cs: added stubs for net_2_0 properties and methods.
  202. 2007-01-26 Dick Porter <[email protected]>
  203. * Socket.cs: SupportsIPv6 is obsolete in the 2.0 profile. Stub
  204. out BeginReceiveMessageFrom(), BeginSendFile(),
  205. EndReceiveMessageFrom(), EndSendFile(), ReceiveMessageFrom(), and
  206. SendFile().
  207. * IPPacketInformation.cs: New in the 2.0 profile
  208. * SocketFlags.cs: Remove useless (and empty) inline documentation,
  209. and add 2.0 items.
  210. * TcpListener.cs: Mark Server as public in the 2.0 profile.
  211. * UdpClient.cs: Mark Dispose(bool) as protected in the 2.0
  212. profile.
  213. System.Net.Sockets should now be 2.0-complete.
  214. 2007-01-26 Dick Porter <[email protected]>
  215. * Socket.cs: There's no point checking the SO_ERROR status of a
  216. socket after poll() or select() if we already know that connected
  217. == true.
  218. 2007-01-24 Dick Porter <[email protected]>
  219. * IOControlCode.cs:
  220. * SocketInformationOptions.cs:
  221. * TransmitFileOptions.cs: Fix enum values
  222. * AddressFamily.cs: Not Serializable in the 2.0 profile
  223. 2007-01-24 Dick Porter <[email protected]>
  224. * NetworkStream.cs: 2.0 profile updates, based on a patch by
  225. Sridhar Kulkarni ([email protected])
  226. 2007-01-23 Dick Porter <[email protected]>
  227. * TcpListener.cs:
  228. * TcpClient.cs: 2.0 profile updates, based on a patch by Sridhar
  229. Kulkarni ([email protected])
  230. 2007-01-22 Miguel de Icaza <[email protected]>
  231. * Socket.cs: Move the throw new NotImplementedException ()
  232. elsewhere to prevent Moma reports.
  233. 2007-01-20 Dick Porter <[email protected]>
  234. * Socket.cs(SocketDefaults): Catch and ignore any SocketExceptions
  235. thrown from setting default socket options - some platforms might
  236. not support a particular default we're trying to set.
  237. 2007-01-11 Dick Porter <[email protected]>
  238. * IOControlCode.cs:
  239. * SocketInformation.cs:
  240. * Socket.cs:
  241. * UdpClient.cs: 2.0 profile updates, loosely based on a patch by
  242. Sridhar Kulkarni.
  243. * SocketInformationOptions.cs:
  244. * TransmitFileOptions.cs: Implemented by Sridhar Kulkarni
  245. ([email protected])
  246. Wed Dec 13 12:04:02 CET 2006 Paolo Molaro <[email protected]>
  247. * Socket.cs: stub ReceiveBufferSize and SendBufferSize to
  248. get ironpython to compile.
  249. 2006-11-23 Dick Porter <[email protected]>
  250. * Socket.cs: Only set Connected = true in Poll() and Select() if
  251. the socket error status is 0. Fixes bug 79878.
  252. 2006-09-28 Andrew Skiba <[email protected]>
  253. * Socket.cs,NetworkStream.cs,SocketException.cs: TARGET_JVM
  254. 2006-09-11 Gonzalo Paniagua Javier <[email protected]>
  255. * Socket.cs: update the SocketOperation enum.
  256. 2006-08-16 Gonzalo Paniagua Javier <[email protected]>
  257. * Socket.cs: replace hardcoded error numbers with the SocketError
  258. values. When ReceiveTimeout is set on a blocking socket, correctly
  259. report timeouts in the generated exception.
  260. * SocketException.cs: add new internal ctor (int, string).
  261. 2006-08-12 Miguel de Icaza <[email protected]>
  262. * Socket.cs (NoDelay): Implement.
  263. 2006-06-30 Gonzalo Paniagua Javier <[email protected]>
  264. * Socket.cs: patch from Sanghyeon Seo that implements
  265. (Send|Receive)Timeout for 2.0.
  266. * MulticastOption.cs: more 2.0 stuff.
  267. 2006-06-28 Atsushi Enomoto <[email protected]>
  268. * Socket.cs : use ConfigurationManager.GetSection() under NET_2_0.
  269. Also make sure to avoid NRE.
  270. 2006-06-24 Zoltan Varga <[email protected]>
  271. * Socket.cs: Add stubs for net 2.0 SendTimeout and ReceiveTimeout properties.
  272. 2006-06-20 Zoltan Varga <[email protected]>
  273. * ProtocolType.cs SocketOptionName.cs: Add missing net 2.0 fields.
  274. 2006-05-30 Gert Driesen <[email protected]>
  275. * NetworkStream.cs: Marked Dispose (bool) virtual on 1.x profile.
  276. 2006-04-10 Gonzalo Paniagua Javier <[email protected]>
  277. * Socket.cs:
  278. * SocketError.cs: implemented Reseive/Send overloads that do not throw
  279. in case of error. Patch by Tomi Valkeinen.
  280. 2006-03-11 Miguel de Icaza <[email protected]>
  281. * NetworkStream.cs (Dispose): Use the right signature depending on
  282. the profile being built.
  283. 2006-03-09 Gonzalo Paniagua Javier <[email protected]>
  284. * Socket.cs: pass something not empty to the unixep ctor.
  285. 2006-03-03 Dick Porter <[email protected]>
  286. * UdpClient.cs: Fix IPv6 family check. Fixes bug 77689.
  287. 2006-02-23 Gonzalo Paniagua Javier <[email protected]>
  288. * TcpClient.cs: when the socket is not connected, don't try to set the
  289. socket options, as they are ignored on linux. Wait until Connect
  290. succeeds and then apply the options.
  291. 2006-02-03 Gonzalo Paniagua Javier <[email protected]>
  292. * Socket.cs: added a missing overload for SetSocketOption.
  293. 2006-01-19 Gonzalo Paniagua Javier <[email protected]>
  294. * Socket.cs: use the 2.0 configuration classes when checking for IPv6
  295. support.
  296. 2006-01-04 Sebastien Pouliot <[email protected]>
  297. * TcpClient.cs: The Client property is public in 2.0 while it was
  298. protected in earlier release. Fix bug #77048.
  299. 2005-12-07 Robert Jordan <[email protected]>
  300. * SocketError.cs: Added.
  301. * SocketException: Implemented SocketErrorCode. Fixes bug #76915.
  302. 2005-10-11 Dick Porter <[email protected]>
  303. * Socket.cs: Don't call connect(2) twice for non-blocking sockets,
  304. it breaks on macos (and probably other bsd-based stacks too,) use
  305. poll() and getsockopt() to check if it worked.
  306. 2005-09-27 Gonzalo Paniagua Javier <[email protected]>
  307. * Socket.cs: add checks for 'disposed' all over. Fixes bug #76249.
  308. 2005-06-07 Gonzalo Paniagua Javier <[email protected]>
  309. * TcpClient.cs: patch by Hans Kratz that uses an integer when setting
  310. NoDelay instead of a bool, which is only handled in 2.0.
  311. 2005-06-04 Gonzalo Paniagua Javier <[email protected]>
  312. * Socket.cs: disallow connecting to .Any addresses. Fixes bug #75154.
  313. 2005-06-01 Gonzalo Paniagua Javier <[email protected]>
  314. * Socket.cs: adapted Select to the new Select_internal that uses poll()
  315. instead of select(). Managed part of the fix for bug #71203.
  316. 2005-05-23 Gonzalo Paniagua Javier <[email protected]>
  317. * Socket.cs: apply the same hack on blocking Connect calls as the one
  318. used in Accept.
  319. 2005-05-07 Gonzalo Paniagua Javier <[email protected]>
  320. * Socket.cs: see bug #74842, which is fixed with this patch for details
  321. and test cases on the blocking behavior of accept() when close() is
  322. called from another thread. The solution applied is to Abort the thread
  323. that is blocking in Accept_internal() when someone calls Close (), then
  324. reset the abort state if the socket is disposed and return the same
  325. error as MS (10004 - interrupted).
  326. 2005-05-06 Gonzalo Paniagua Javier <[email protected]>
  327. * Socket.cs: match MS behavior on SetSocketOption with a boolean
  328. argument. MS 1.1 throws an ArgumentException, but 2.0 turns true/false
  329. into 1/0 and works fine. Fixes bug #71753. Added checks for disposed
  330. in the 3 SetSocketOption.
  331. 2005-05-03 Gonzalo Paniagua Javier <[email protected]>
  332. * Socket.cs: if there are outstanding aio requests and one of them gets
  333. an ObjectDisposedException, throw the same exception for the rest.
  334. 2005-05-02 Gonzalo Paniagua Javier <[email protected]>
  335. * Socket.cs: removed hack added to fix bug #53229 (more than a year ago)
  336. that kept sockets opened until all AIO operations where finished. If
  337. the socket is closed, Receive returns 0 in EndReceive, the rest throw
  338. the ObjectDisposedException. Set the socket handle to -1 when closing.
  339. 2005-04-18 Gonzalo Paniagua Javier <[email protected]>
  340. * Socket.cs: Begin/End Send/SendTo guarantee that all bytes are written
  341. or an exception is thrown. Fixes bug #74475.
  342. 2005-04-17 Gonzalo Paniagua Javier <[email protected]>
  343. * Socket.cs: no need for locking in Worker. The actual read / write for
  344. Receive / Send is performed in the runtime time.
  345. 2005-04-15 Gonzalo Paniagua Javier <[email protected]>
  346. * Socket.cs: added a 'blocking' field that is passed to the runtime.
  347. 2005-04-09 Gonzalo Paniagua Javier <[email protected]>
  348. * Socket.cs: invoke the callback after scheduling the next request for
  349. the socket. Fixes bug #74539.
  350. 2005-04-08 Gonzalo Paniagua Javier <[email protected]>
  351. * Socket.cs: update socket connected status in an async request finishes
  352. synchronously. Use 'callback' instead of 'real_callback' field, which is
  353. now unused.
  354. 2005-04-07 Gonzalo Paniagua Javier <[email protected]>
  355. * Socket.cs: added SocketOperation enum and 2 new fields to
  356. SocketAsyncResult that are used by the runtime. Asynchronous read/write
  357. are serialized so that only 1 of each kind is really 'active'.
  358. Handle non-blocking connects in BeginConnect instead of doing 2 Poll()
  359. in the threadpool.
  360. * NetworkStream.cs: better message for the exception.
  361. 2005-04-04 Gonzalo Paniagua Javier <[email protected]>
  362. * Socket.cs: remove unused async IO code.
  363. 2005-03-01 Gonzalo Paniagua Javier <[email protected]>
  364. * Socket.cs: don't Poll/block in Connect aither.
  365. 2005-02-28 Gonzalo Paniagua Javier <[email protected]>
  366. * Socket.cs: don't block on Accept if the socket is non-blocking.
  367. Fixes bug #73053. Patch by Ankit Jain.
  368. 2005-02-23 Dick Porter <[email protected]>
  369. * UdpClient.cs: Set the Broadcast option, as apparently the MS
  370. runtime defaults make UDP sockets broadcastable.
  371. 2004-12-28 Gonzalo Paniagua Javier <[email protected]>
  372. * Socket.cs: for Receive*/Send*, don't set the connected status to false
  373. when the error is EINPROGRESS or EWOULDBLOCK.
  374. 2004-12-03 Gonzalo Paniagua Javier <[email protected]>
  375. * NetworkStream.cs: Write should ensure that writes all the contents
  376. of the buffer. Fixes bug #70123. Besos para Miguelito.
  377. 2004-10-14 Dick Porter <[email protected]>
  378. * Socket.cs (Sockets ): Set Accept()ed socket blocking status to
  379. be the same as the listening socket. This follows MS behaviour.
  380. 2004-08-04 Dick Porter <[email protected]>
  381. * Socket.cs: Update Connected state in Select and Poll; this is
  382. when we find out that non-blocking Connects succeed. Fixes bug
  383. 62398.
  384. 2004-07-28 Dick Porter <[email protected]>
  385. * Socket.cs: ReceiveFrom might not return a valid EndPoint. Patch
  386. by Nick Vaughan ([email protected]), fixes bug 61608.
  387. 2004-07-15 Dick Porter <[email protected]>
  388. * Socket.cs: Don't try and dereference a null array in Select()
  389. (possible if a descriptor list of length 0 was passed.) Patch by
  390. Nick Vaughan ([email protected]), fixes bug 61595.
  391. 2004-07-12 Gonzalo Paniagua Javier <[email protected]>
  392. * Socket.cs: if'ed RemoveReferences calls.
  393. 2004-07-09 Dick Porter <[email protected]>
  394. * Socket.cs: Slight tweak to allow unknown objects to be returned
  395. by GetSocketOption().
  396. 2004-06-28 Gonzalo Paniagua Javier <[email protected]>
  397. * Socket.cs: connect on non-blocking sockets returns EINPROGRESS. Fixes
  398. bug #60811.
  399. 2004-06-23 Gonzalo Paniagua Javier <[email protected]>
  400. * Socket.cs: wrong error code in connect and accept. EWOULDBLOCK is
  401. 10035. Fixes bug #60563.
  402. 2004-06-20 Gonzalo Paniagua Javier <[email protected]>
  403. * Socket.cs: fixed Accept for non-blocking sockets.
  404. 2004-06-10 Gert Driesen <[email protected]>
  405. * LingerOption.cs: marked field private to fix API signature
  406. * MulticastOption.cs: marked field private to fix API signature
  407. 2004-06-05 Gonzalo Paniagua Javier <[email protected]>
  408. * Socket.cs: throw ArgumentNullException if all the list are null OR
  409. empty. Fixes bug #59632.
  410. 2004-05-21 Patrik Torstensson <[email protected]>
  411. * TcpListener.cs: Fixes a lot of the problems with remoting nunit tests.
  412. (AcceptTcpClient): Don't create TcpClient before a
  413. connection is accepted.
  414. (LocalEndPoint): Use Server LocalEndPoint if connected
  415. otherwise use endpoint from ctor.
  416. (Init): Save end point, not server endpoint. This did
  417. cause TcpListener to ignore port sent via constructor.
  418. (Pending): Fixed wait time (method should return directly)
  419. (Start): Moved Bind here instead of Init method; old method
  420. caused us to bind ports even if the listener was stopped.
  421. (Stop): Null server when stopping
  422. 2004-05-13 Dick Porter <[email protected]>
  423. * UdpClient.cs:
  424. * TcpClient.cs: Public API fixes
  425. 2004-05-07 Gonzalo Paniagua Javier <[email protected]>
  426. * Socket.cs: fixed Connect for non-blocking sockets. Closes bug #58169.
  427. 2004-05-03 Gonzalo Paniagua Javier <[email protected]>
  428. * Socket.cs: fix for BeginConnect and non-blocking sockets.
  429. 2004-05-03 Lluis Sanchez Gual <[email protected]>
  430. * Socket.cs: Use assembly name const to load Mono.Posix.
  431. 2004-05-01 Gonzalo Paniagua Javier <[email protected]>
  432. * Socket.cs: only enable socket AIO if MONO_ENABLE_SOCKET_AIO is there.
  433. I will remove this once THE bug is hunted.
  434. 2004-04-28 Gonzalo Paniagua Javier <[email protected]>
  435. * Socket.cs: added support for unmanaged asynchronous IO. Speed up
  436. error checking.
  437. * UdpClient.cs: fixed Dispose so that it only closes the socket when
  438. called explicitly.
  439. 2004-04-24 Gonzalo Paniagua Javier <[email protected]>
  440. * Socket.cs: added GetSupportsAsync and Poll_internal internal calls.
  441. Cleaned up Worker class: moved fields to SocketAsyncResult and use Poll
  442. when the socket is non-blocking before getting EWOULDBLOCK error.
  443. 2004-04-08 Dick Porter <[email protected]>
  444. * Socket.cs: Rearrange the internal calls so that the exceptions
  445. are thrown from managed code
  446. 2004-03-21 Gonzalo Paniagua Javier <[email protected]>
  447. * Socket.cs: when Dispose (bool) is called from the finalizer, always
  448. do the cleanup. Fixes yet another nullref with xsp.
  449. 2004-02-19 Gonzalo Paniagua Javier <[email protected]>
  450. * Socket.cs: implemented IOControl.
  451. 2004-02-18 Gonzalo Paniagua Javier <[email protected]>
  452. * Socket.cs: use the threadpool for asynchronous calls instead of
  453. creating new threads.
  454. 2004-02-12 Gonzalo Paniagua Javier <[email protected]>
  455. * Socket.cs: added locks around waithandle assign and comparison in
  456. class Worker. Handle other exceptions than SocketException for
  457. non-blocking sockets.
  458. 2004-01-24 Gonzalo Paniagua Javier <[email protected]>
  459. * Socket.cs: handle WSAEWOULDBLOCK for non-blocking sockets. Fixes
  460. bug #53168. Avoid the creation of the ManualResetEvent in class Worker
  461. whenever possible.
  462. 2004-01-24 Gonzalo Paniagua Javier <[email protected]>
  463. * Socket.cs: if we have a pending async event, delay socket closing
  464. until EndX is called. Fixes bug #53229. Check parameters and if the
  465. socket has been disposed. Implemented IDisposable explicitly. The
  466. threads created have IsBackground = true now.
  467. 2004-01-10 Gonzalo Paniagua Javier <[email protected]>
  468. * Socket.cs: patch from Brad Fitzpatrick <[email protected]> episode 2.
  469. 2003-12-30 Gonzalo Paniagua Javier <[email protected]>
  470. * Socket.cs: fix for several asynchronous methods to delay exception
  471. throwing. Patch by Brad Fitzpatrick <[email protected]>.
  472. 2003-12-18 Gonzalo Paniagua Javier <[email protected]>
  473. * TcpListener.cs: get the LocalEndPoint from the socket after binding.
  474. Fixes bug #52329.
  475. 2003-10-20 Miguel de Icaza <[email protected]>
  476. * TcpClient.cs: Fix void Dispose (bool disposing) to follow the
  477. pattern. It was shutting down the managed resources even in the
  478. finalizer case, it should only do that when called from
  479. IDisposable.Dipose.
  480. 2003-09-11 Lluis Sanchez Gual <[email protected]>
  481. * NetworkStream.cs: Added [In,Out] attributes to Read method.
  482. 2003-08-24 Gonzalo Paniagua Javier <[email protected]>
  483. * TcpListener.cs: various fixes to make the new tests pass. Closes
  484. bug #47848.
  485. 2003-08-10 Miguel de Icaza <[email protected]>
  486. * UdpClient.cs (Receive): Fix Bug 45633; We should do a blocking
  487. call until a datagram is arrives from the remote host. This
  488. removes the 512 "magic" buffer size when we did not have any data.
  489. 2003-07-31 Gonzalo Paniagua Javier <[email protected]>
  490. * NetworkStream.cs:
  491. * Socket.cs: fixed array boundary checks. 0 sized arrays are allowed.
  492. 2003-07-18 Andreas Nahr <[email protected]>
  493. * Socket.cs: Added GetHashCode method
  494. 2003-07-14 Jerome Laban <[email protected]>
  495. * Socket.cs:
  496. * ProtocolType.cs:
  497. * SocketOptionLevel.cs:
  498. * TcpListener.cs:
  499. * TcpClient.cs:
  500. * UdpClient.cs:
  501. Added IPv6 support.
  502. * IPv6MulticastOption.cs: Added for IPv6 support.
  503. 2003-05-16 Dick Porter <[email protected]>
  504. * Socket.cs: Use Mono.Posix.UnixEndPoint if its available
  505. 2003-05-11 Gonzalo Paniagua Javier <[email protected]>
  506. * MulticastOption.cs: patch by Jerome Laban included in bug #42393.
  507. 2003-05-05 Gonzalo Paniagua Javier <[email protected]>
  508. * Socket.cs:
  509. (Select): don't create arrays if not needed.
  510. (Poll): call Select_internal directly.
  511. Warning: you need an up to date runtime for this to work!
  512. 2003-03-25 Gonzalo Paniagua Javier <[email protected]>
  513. * UdpClient.cs: don't bind the socket unless .ctor (IPEndPoint) is used.
  514. Added more checks and throws.
  515. Small fixes in Send to avoid duplicating the buffer.
  516. Moved CheckIfDisposed calls to the start of the methods instead of doing
  517. the check inside a finally clause.
  518. 2003-03-03 Gonzalo Paniagua Javier <[email protected]>
  519. * Socket.cs:
  520. (SendTo): fix from Jerome Laban <[email protected]>.
  521. 2003-02-28 Gonzalo Paniagua Javier <[email protected]>
  522. * Socket.cs: patch from Elan Feingold <[email protected]>. Fixes
  523. NullReferenceException when the callback is null.
  524. 2003-02-17 Gonzalo Paniagua Javier <[email protected]>
  525. * NetworkStream.cs: allow 0 size array in Write.
  526. 2003-02-16 Gonzalo Paniagua Javier <[email protected]>
  527. * Socket.cs: make Worker.Connect and Receive work with non-blocking
  528. sockets. May be Receive* and Send* in Worker need to do the same. I'll
  529. wait for bug reports. Set IsCompleted to true before invoking the end
  530. callback. Fixes bug #38136.
  531. 2003-01-23 Gonzalo Paniagua Javier <[email protected]>
  532. * NetworkStream.cs: the check for disposed should not be done in the
  533. finally clause.
  534. 2003-01-04 Gonzalo Paniagua Javier <[email protected]>
  535. * UdpClient.cs: fixed bug #36226.
  536. 2002-11-13 Dick Porter <[email protected]>
  537. * Socket.cs: Only close the socket in one place, ie the Dispose
  538. method. Fixes bug 32054.
  539. 2002-11-09 Gonzalo Paniagua Javier <[email protected]>
  540. * Socket.cs: offset == size == 0 it's ok in Send ().
  541. 2002-11-03 Phillip Pearson <[email protected]>
  542. * TcpClient.cs: Fixed SetTcpClient() to pass through to the Client
  543. property, which now sets stream to null (it's set by GetStream()). This
  544. should make GetStream() work on a TcpClient which has had the socket set
  545. by assignment to the Client property, not only one that has been created
  546. by TcpListener.AcceptTcpClient().
  547. 2002-10-08 Dick Porter <[email protected]>
  548. * Socket.cs:
  549. * NetworkStream.cs: Bounds checking fixes, and better exception
  550. texts. Changes by [email protected] (Timothy J. Mills).
  551. 2002-10-03 Dick Porter <[email protected]>
  552. * TcpClient.cs: NoDelay is a TCP option, not Socket
  553. 2002-09-16 Miguel de Icaza <[email protected]>
  554. * SocketFlags.cs: Add missing enumeration.
  555. * UdpClient.cs: Make Dispose private.
  556. 2002-08-20 Dick Porter <[email protected]>
  557. * Socket.cs: Fix deadlock when the AsyncResult callback calls
  558. End*(). Set the async request's worker property so it can return
  559. results. These two fixes combined fix bug 28092.
  560. 2002-06-24 Dick Porter <[email protected]>
  561. * Socket.cs: Make SetSocketOption cope with boolean values (they
  562. are passed as objects, not the ints the runtime was expecting)
  563. 2002-05-17 Lawrence Pit <[email protected]>
  564. * TcpListener.cs: Renamed LocalEndPoint to LocalEndpoint
  565. * NetworkStream.cs, UdpClient.cs and TcpClient.cs: modified disposable
  566. routines, added checks for disposed state.
  567. * UdpClient.cs: commented out GetHashCode and Equals as it's not
  568. overriden in ms.net implementation.
  569. 2002-05-17 Jaroslaw Kowalski <[email protected]>
  570. * TcpClient.cs: fixed SetTcpClient so that
  571. TcpListener.AcceptTcpClient works and allows
  572. you to call GetStream() on its result
  573. 2002-04-24 Dick Porter <[email protected]>
  574. * Socket.cs (Poll): Give correct argument to Select(), as spotted
  575. by Jaroslaw Kowalski <[email protected]>
  576. 2002-04-16 Gonzalo Paniagua Javier <[email protected]>
  577. * UdpClient.cs: implemented.
  578. 2002-04-02 Dick Porter <[email protected]>
  579. * TcpListener.cs: in Start(), set the socket listen backlog value
  580. to a sane value (noticed by Jonathan Stowe <[email protected]>)
  581. 2002-02-13 Dick Porter <[email protected]>
  582. * Socket.cs: Implemenent Select, Blocking, Connected,
  583. GetSocketOption, Poll, SetSocketOption and Shutdown
  584. * MulticastOption.cs:
  585. * LingerOption.cs: Delete override methods that don't need to be
  586. implemented
  587. 2002-01-23 Miguel de Icaza <[email protected]>
  588. * NetworkStream.cs: Implement class.
  589. 2002-01-23 Dick Porter <[email protected]>
  590. * SocketException.cs: Implemented
  591. * Socket.cs: Implemented most methods
  592. * LingerOption.cs: Made compile
  593. * AddressFamily.cs: Removed empty auto-generated comments
  594. 2002-01-17 Miguel de Icaza <[email protected]>
  595. * SocketException.cs: Reimplemented.
  596. 2002-01-06 Ravi Pratap <[email protected]>
  597. * ChangeLog : Add to this directory.
  598. * SocketException.cs, TcpClient.cs, TcpListener.cs : MonoTODO
  599. attribute decoration.