* Socket.cs: instead of clearing the sockets form the output and then
adding them back, we just remove the ones that have not been signaled.
Fixes bug #354090 and bug #476138.
svn path=/trunk/mcs/; revision=127234
* Socket.cs: instead of clearing the sockets form the output and then
adding them back, we just remove the ones that have not been
signaled.
Fixes bug #354090.
svn path=/trunk/mcs/; revision=126637
* Socket.cs: Special case 0-length receive requests in the
BeginAccept overloads that wait for data, so they behave as the
non-waiting version. Seems to match MS behaviour, fixes bug
464201.
svn path=/trunk/mcs/; revision=122904
* socket-io.h : Changing the signature of
ves_icall_System_Net_Sockets_Socket_Accept_internal to pass
the blocking state.
* icall-def.h : Changing the signature of
System.Net.Sockets.Socket.Accept_internal to pass the blocking state.
* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal) :
For Windows only. Avoid blocking when calling accept by
querying for a connection via select. The loop also queries
the thread state every 1000 micro seconds for the thread
stop state. This will avoid the process hanging on shutdown
when using a TcpChannel that is never connected to.
* Socket.cs (Accept_internal) : Changing the signature to pass
the blocking state.
Code is contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=122252
* Socket.cs: mark the socket as not connected when there is a pending
error or exception about to be thrown.
Bug #443346 fixed.
svn path=/trunk/mcs/; revision=118696
* Socket.cs : Adding a comment to provide locations where
changes to MonoSocketAsyncResult need to be synced.
* Process.cs : Update the fields of ProcessAsyncReader to
match MonoSocketAsyncResult metadata/socket-io.h
Code is contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=112681
* Socket.cs : (SocketAsyncResult) release byte buffer early so that
it does not have to store extra data in pool. Fixed bug #397627.
svn path=/trunk/mcs/; revision=112408
* SocketAsyncEventArgs.cs: implemented support for executing
asynchronous socket actions, called from the new xxxxAsync methods
in Socket. The asynchronous operations do not use the ThreadPool
as I can't get the sample applications to work (send/receive
callbacks don't work) - it may change in the future.
* Socket.cs: implemented several xxxxAsync 2.0sp1 methods. The
ones not implemented for now are: ReceiveMessageFromAsync and
SendPacketsAsync. AcceptAsync doesn't perform the check for the
buffer size for now - need to implement runtime support for that.
Made several methods internal, so that they can be accessed from
SocketAsyncEventArgs code.
svn path=/trunk/mcs/; revision=102884
* SocketAsyncOperation.cs, SendPacketsElement.cs,
SocketAsyncEventArgs.cs: added initial implementations for
2.0SP1/3.5 classes used in the (to be implemented) new xxxAsync
methods of the Socket class.
svn path=/trunk/mcs/; revision=102790
* NetworkStream.cs: Throw an IOException if the socket is not
connected, not an ArgumentException.
Fixes#371923, it is also the way its documented on MSDN.
svn path=/trunk/mcs/; revision=101082
* Socket.cs: add a static ctor so that ipv4Supported and ipv6Supported
are initialized (they are used by the runtime).
svn path=/trunk/mcs/; revision=98073
* TcpClient.cs: If the Connect fails (when given an array of
addresses) leave the socket object in a usable state. Fixes bug
355473.
svn path=/trunk/mcs/; revision=94523
* Socket.cs: Do not set the Send and Receive buffer sizes for the
socket to the defaults set on Windows, they kill our performance.
Thanks to Zoltan Varga for tracking the performance issue down.
The bug was #325032
svn path=/trunk/mcs/; revision=88700
* UdpClient.cs: Don't set the multicast option twice. Fixes bug
324033.
2007-10-30 Dick Porter <[email protected]>
* UdpClientTest.cs: Test for 324033.
svn path=/trunk/mcs/; revision=88456
2007-10-21 Robert Jordan <[email protected]>
* Socket.cs: Remove GetHashCode override from the NET_2_0
profile. Add LAMESPEC comment. Fixes bug #325113.
In Test/System.Net.Sockets:
2007-10-21 Robert Jordan <[email protected]>
* SocketTest.cs: Enable GetHashCodeTest.
svn path=/trunk/mcs/; revision=87865
Dispose, only nullify client if network stream was not obtained.
Fixes bug #81105.
* TcpClientTest.cs: Added test for bug #81105.
svn path=/trunk/mcs/; revision=74062
* Socket.cs: SupportsIPv6 is obsolete in the 2.0 profile. Stub
out BeginReceiveMessageFrom(), BeginSendFile(),
EndReceiveMessageFrom(), EndSendFile(), ReceiveMessageFrom(), and
SendFile().
* IPPacketInformation.cs: New in the 2.0 profile
* SocketFlags.cs: Remove useless (and empty) inline documentation,
and add 2.0 items.
* TcpListener.cs: Mark Server as public in the 2.0 profile.
* UdpClient.cs: Mark Dispose(bool) as protected in the 2.0
profile.
System.Net.Sockets should now be 2.0-complete.
svn path=/trunk/mcs/; revision=71759
* Socket.cs: There's no point checking the SO_ERROR status of a
socket after poll() or select() if we already know that connected
== true.
2007-01-26 Dick Porter <[email protected]>
* SocketTest.cs: New test for SO_ERROR reading, returning the same
value over and over.
svn path=/trunk/mcs/; revision=71751
* NetworkStream.cs: 2.0 profile updates, based on a patch by
Sridhar Kulkarni ([email protected])
2007-01-24 Dick Porter <[email protected]>
* NetworkStreamTest.cs: Test 2.0 ReadTimeout property
svn path=/trunk/mcs/; revision=71598
* TcpListener.cs: 2.0 profile updates, based on a patch by Sridhar
Kulkarni ([email protected])
2007-01-23 Dick Porter <[email protected]>
* TcpListenerTest.cs: Test 2.0 Start(int) overload
svn path=/trunk/mcs/; revision=71565
* TcpClient.cs: 2.0 profile updates, based on a patch by Sridhar
Kulkarni ([email protected])
2007-01-23 Dick Porter <[email protected]>
* TcpClientTest.cs: Test 2.0 Connect(IPAddress[], port) overload
svn path=/trunk/mcs/; revision=71557
* Socket.cs(SocketDefaults): Catch and ignore any SocketExceptions
thrown from setting default socket options - some platforms might
not support a particular default we're trying to set.
svn path=/trunk/mcs/; revision=71386