Commit Graph
44 Commits
Author SHA1 Message Date
Dick Porter 32ba645fab 2004-08-04 Dick Porter <[email protected]>
* Socket.cs: Update Connected state in Select and Poll; this is
	when we find out that non-blocking Connects succeed.  Fixes bug
	62398.

svn path=/trunk/mcs/; revision=31862
2004-08-04 12:41:49 +00:00
Dick Porter 07fbaf3262 2004-07-28 Dick Porter <[email protected]>
* Socket.cs: ReceiveFrom might not return a valid EndPoint.  Patch
	by Nick Vaughan ([email protected]), fixes bug 61608.

svn path=/trunk/mcs/; revision=31560
2004-07-28 15:44:10 +00:00
Dick Porter 2aba10408a 2004-07-15 Dick Porter <[email protected]>
* Socket.cs: Don't try and dereference a null array in Select()
	(possible if a descriptor list of length 0 was passed.)  Patch by
	Nick Vaughan ([email protected]), fixes bug 61595.

svn path=/trunk/mcs/; revision=31178
2004-07-15 13:52:18 +00:00
Gonzalo Paniagua Javier 0fffd32d9a 2004-07-12 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: if'ed RemoveReferences calls.

svn path=/trunk/mcs/; revision=31023
2004-07-12 01:37:25 +00:00
Dick Porter eef810c8ee 2004-07-09 Dick Porter <[email protected]>
* PeerCred.cs: Get the unix socket peer credentials.

2004-07-09  Dick Porter  <[email protected]>

	* Socket.cs: Slight tweak to allow unknown objects to be returned
	by GetSocketOption().

svn path=/trunk/mcs/; revision=30928
2004-07-09 13:04:11 +00:00
Gonzalo Paniagua Javier 004725da98 2004-06-28 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: connect on non-blocking sockets returns EINPROGRESS. Fixes
	bug #60811.

svn path=/trunk/mcs/; revision=30478
2004-06-28 15:06:02 +00:00
Gonzalo Paniagua Javier c5512254ac 2004-06-23 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: wrong error code in connect and accept. EWOULDBLOCK is
	10035. Fixes bug #60563.

svn path=/trunk/mcs/; revision=30169
2004-06-23 09:38:50 +00:00
Duncan Mak 24f5ef2c44 Add MIT license to System.dll
svn path=/trunk/mcs/; revision=30054
2004-06-21 18:02:11 +00:00
Gonzalo Paniagua Javier acf93ff574 2004-06-20 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: fixed Accept for non-blocking sockets.

svn path=/trunk/mcs/; revision=29980
2004-06-20 19:00:11 +00:00
Gonzalo Paniagua Javier 552b3e2465 2004-06-05 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: throw ArgumentNullException if all the list are null OR
	empty. Fixes bug #59632.

svn path=/trunk/mcs/; revision=28864
2004-06-05 14:08:42 +00:00
Gonzalo Paniagua Javier 6b97495b1d 2004-05-07 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: fixed Connect for non-blocking sockets. Closes bug #58169.

svn path=/trunk/mcs/; revision=26887
2004-05-07 07:47:23 +00:00
Gonzalo Paniagua Javier 48b65204d4 2004-05-03 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: fix for BeginConnect and non-blocking sockets.

svn path=/trunk/mcs/; revision=26636
2004-05-03 20:10:59 +00:00
Lluis Sanchez 8450b5abbd * Socket.cs: Use assembly name const to load Mono.Posix.
svn path=/trunk/mcs/; revision=26627
2004-05-03 19:26:58 +00:00
Gonzalo Paniagua Javier 1b298ca6d1 2004-05-01 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: only enable socket AIO if MONO_ENABLE_SOCKET_AIO is there.
	I will remove this once THE bug is hunted.

svn path=/trunk/mcs/; revision=26507
2004-05-01 13:20:28 +00:00
Gonzalo Paniagua Javier 53beb817a2 2004-04-28 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: added support for unmanaged asynchronous IO. Speed up
	error checking.
	* UdpClient.cs: fixed Dispose so that it only closes the socket when
	called explicitly.

svn path=/trunk/mcs/; revision=26110
2004-04-28 03:45:16 +00:00
Gonzalo Paniagua Javier 5360b96f46 2004-04-24 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: added GetSupportsAsync and Poll_internal internal calls.
	Cleaned up Worker class: moved fields to SocketAsyncResult and use Poll
	when the socket is non-blocking before getting EWOULDBLOCK error.

svn path=/trunk/mcs/; revision=25914
2004-04-24 02:03:26 +00:00
Dick Porter 15f11aeb01 2004-04-08 Dick Porter <[email protected]>
* Socket.cs: Rearrange the internal calls so that the exceptions
	are thrown from managed code

svn path=/trunk/mcs/; revision=25217
2004-04-08 11:56:14 +00:00
Gonzalo Paniagua Javier 1c963cb88d 2004-03-21 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: when Dispose (bool) is called from the finalizer, always
	do the cleanup. Fixes yet another nullref with xsp.

svn path=/trunk/mcs/; revision=24387
2004-03-21 07:56:15 +00:00
Gonzalo Paniagua Javier 39535ef3fe 2004-02-19 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: implemented IOControl.

svn path=/trunk/mcs/; revision=23810
2004-03-08 19:05:59 +00:00
Gonzalo Paniagua Javier 8114803ec8 2004-02-18 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: use the threadpool for asynchronous calls instead of
	creating new threads.

svn path=/trunk/mcs/; revision=23229
2004-02-18 18:56:16 +00:00
Gonzalo Paniagua Javier 6e64eaf926 2004-02-12 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: added locks around waithandle assign and comparison in
	class Worker. Handle other exceptions than SocketException for
	non-blocking sockets.

svn path=/trunk/mcs/; revision=23005
2004-02-12 00:55:21 +00:00
Gonzalo Paniagua Javier c57d82fab4 don't create the ManualResetEvent in the constructor
svn path=/trunk/mcs/; revision=22471
2004-01-24 22:40:56 +00:00
Gonzalo Paniagua Javier 7389c6267d 2004-01-24 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: handle WSAEWOULDBLOCK for non-blocking sockets. Fixes
	bug #53168. Avoid the creation of the ManualResetEvent in class Worker
	whenever possible.

svn path=/trunk/mcs/; revision=22470
2004-01-24 22:13:28 +00:00
Gonzalo Paniagua Javier 8fc4e8ba06 2004-01-24 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: if we have a pending async event, delay socket closing
	until EndX is called. Fixes bug #53229. Check parameters and if the
	socket has been disposed. Implemented IDisposable explicitly. The
	threads created have IsBackground = true now.

svn path=/trunk/mcs/; revision=22464
2004-01-24 13:07:14 +00:00
Gonzalo Paniagua Javier 9f6185664b 2004-01-10 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: patch from Brad Fitzpatrick <[email protected]> take 2.

svn path=/trunk/mcs/; revision=21890
2004-01-10 00:02:57 +00:00
Gonzalo Paniagua Javier c5cd9cb597 2003-12-30 Gonzalo Paniagua Javier <[email protected]>
* System_test.dll.sources: added SocketTest.cs

	* System.Net.Sockets/Socket.cs: fix for several asynchronous methods to
	delay exception throwing.

	* Test/System.Net.Sockets/SocketTest.cs: new test for asynchronous
	connection failure.

	Test+fix by Brad FitzpatrickBrad Fitzpatrick <[email protected]>.

svn path=/trunk/mcs/; revision=21562
2003-12-31 13:18:45 +00:00
Gonzalo Paniagua Javier 2dede109a4 2003-07-31 Gonzalo Paniagua Javier <[email protected]>
* NetworkStream.cs:
	* Socket.cs: fixed array boundary checks. 0 sized arrays are allowed.

svn path=/trunk/mcs/; revision=16921
2003-07-31 02:07:21 +00:00
Andreas N ead329bfa3 2003-07-18 Andreas Nahr <[email protected]>
* Socket.cs: Added GetHashCode method

svn path=/trunk/mcs/; revision=16397
2003-07-18 11:35:47 +00:00
Jerome Laban 3d171d4a85 2003-07-14 Jerome Laban <[email protected]>
* Socket.cs:
        * ProtocolType.cs:
        * SocketOptionLevel.cs:
        * TcpListener.cs:
        * TcpClient.cs:
        * UdpClient.cs:

        Added IPv6 support.

        * IPv6MulticastOption.cs: Added for IPv6 support.

svn path=/trunk/mcs/; revision=16217
2003-07-14 16:03:20 +00:00
Dick Porter 88fba9d239 2003-05-16 Dick Porter <[email protected]>
* Socket.cs: Use Mono.Posix.UnixEndPoint if its available

svn path=/trunk/mcs/; revision=14627
2003-05-16 12:03:57 +00:00
Gonzalo Paniagua Javier 7b43a7b458 2003-05-05 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs:
        (Select): don't create arrays if not needed.
        (Poll): call Select_internal directly.

svn path=/trunk/mcs/; revision=14298
2003-05-05 13:36:06 +00:00
Gonzalo Paniagua Javier c6b2a68290 2003-03-03 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs:
	(SendTo): fix from Jerome Laban <[email protected]>.

svn path=/trunk/mcs/; revision=12111
2003-03-03 00:12:24 +00:00
Gonzalo Paniagua Javier dcc8dfb3af 2003-02-28 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: patch from Elan Feingold <[email protected]>. Fixes
	NullReferenceException when the callback is null.

svn path=/trunk/mcs/; revision=12056
2003-02-28 08:00:46 +00:00
Gonzalo Paniagua Javier 58ac3c61d1 2003-02-16 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: make Worker.Connect and Receive work with non-blocking
	sockets. May be Receive* and Send* in Worker need to do the same. I'll
	wait for bug reports. Set IsCompleted to true before invoking the end
	callback. Fixes bug #38136.

svn path=/trunk/mcs/; revision=11629
2003-02-16 22:13:26 +00:00
Dick Porter 243a8ee50a 2002-11-13 Dick Porter <[email protected]>
* Socket.cs: Only close the socket in one place, ie the Dispose
	method.  Fixes bug 32054.

svn path=/trunk/mcs/; revision=8969
2002-11-13 16:28:01 +00:00
Gonzalo Paniagua Javier b224c2482e 2002-11-09 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: offset == size == 0 it's ok in Send ().

svn path=/trunk/mcs/; revision=8896
2002-11-09 09:46:27 +00:00
Dick Porter bb0b26f43a 2002-10-08 Dick Porter <[email protected]>
* Socket.cs:
	* NetworkStream.cs: Bounds checking fixes, and better exception
	texts.  Changes by [email protected] (Timothy J. Mills).

svn path=/trunk/mcs/; revision=8062
2002-10-08 14:05:51 +00:00
Dick Porter fa33bf99de 2002-08-20 Dick Porter <[email protected]>
* Socket.cs: Fix deadlock when the AsyncResult callback calls
	End*().  Set the async request's worker property so it can return
	results.  These two fixes combined fix bug 28092.

svn path=/trunk/mcs/; revision=6808
2002-08-20 13:48:15 +00:00
Dick Porter 8fca1a368c 2002-06-24 Dick Porter <[email protected]>
* Socket.cs: Make SetSocketOption cope with boolean values (they
	are passed as objects, not the ints the runtime was expecting)

svn path=/trunk/mcs/; revision=5427
2002-06-24 09:41:09 +00:00
Dick Porter 592a5f901c 2002-04-24 Dick Porter <[email protected]>
* Socket.cs (Poll): Give correct argument to Select(), as spotted
	by Jaroslaw Kowalski <[email protected]>

svn path=/trunk/mcs/; revision=4019
2002-04-24 08:39:24 +00:00
Dick Porter 493c36b7f8 2002-02-13 Dick Porter <[email protected]>
* Socket.cs: Implemenent Select, Blocking, Connected,
	GetSocketOption, Poll, SetSocketOption and Shutdown

	* MulticastOption.cs:
	* LingerOption.cs: Delete override methods that don't need to be
	implemented

svn path=/trunk/mcs/; revision=2380
2002-02-13 17:00:10 +00:00
Dick Porter 734a34aa23 2002-01-23 Dick Porter <[email protected]>
* System.build: Start build System.Net.Sockets.Socket.cs,
	TcpClient.cs and TcpListener.cs

2002-01-23  Dick Porter  <[email protected]>

	* SocketException.cs: Implemented

	* Socket.cs: Implemented most methods

	* LingerOption.cs: Made compile

	* AddressFamily.cs: Removed empty auto-generated comments

2002-01-23  Dick Porter  <[email protected]>

	* SocketAddress.cs: Implemented.

	* IPEndPoint.cs: Turned 'Address' field into a real property.
	Implemented Create() and Serialize() methods.

	* IPAddress.cs: Fixed class constructor, turned 'Address' field
	into a real property. Removed undocumented "public
	IPAddress(string)" constructor.

	* EndPoint.cs: Implemented.  All methods return
	NotSupportedException to enforce subclass overriding.

	* Dns.cs: Replaced fixed-layout Hostent struct and cygwin
	P/Invokes with portable internal calls.

2002-01-23  Dick Porter  <[email protected]>

	* Win32Exception.cs: implement, with support for looking up
	runtime errors.

2002-01-23  Dick Porter  <[email protected]>

	* Marshal.cs: Added GetLastWin32Error()

	* ExternalException.cs: Implemented

2002-01-23  Dick Porter  <[email protected]>

	* System.Xml/XmlNode.cs: Fixed IndexerName attribute so it
	compiles under .net 1.0

2002-01-23  Dick Porter  <[email protected]>

	* Linux.cs: GetFileTime and SetFileTime need to be static

2002-01-23  Dick Porter  <[email protected]>

	* ManualResetEvent.cs:
	* AutoResetEvent.cs: Fixed DOS line endings

svn path=/trunk/mcs/; revision=2127
2002-01-23 19:19:34 +00:00
Phillip Pearson 2431c61d15 * TcpClient.cs: common_constructor() changed to Init() to match coding
style elsewhere in class libraries.  Comments added.
* TcpListener.cs: Same
* Socket.cs: Filled out methods and properties and commented most of
  them.

svn path=/trunk/mcs/; revision=1439
2001-11-26 05:52:53 +00:00
Miguel de Icaza a20f123a6d Add more classes
svn path=/trunk/mcs/; revision=278
2001-07-20 19:19:46 +00:00