Commit Graph
157 Commits
Author SHA1 Message Date
Dick Porter 4fcd84462b 2008-02-01 Dick Porter <[email protected]>
* 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
2008-02-01 13:27:01 +00:00
Arina Itkes ddaf734d6a Fix for 9491 bug. Socket should not throw exception when it closed by another thread.
svn path=/trunk/mcs/; revision=91709
2007-12-20 14:30:11 +00:00
Atsushi Eno d63f9df2ff 2007-11-13 Atsushi Enomoto <[email protected]>
* NetworkStream.cs : in 2.0 Close() is not needed and does not exist.


svn path=/trunk/mcs/; revision=89538
2007-11-13 10:11:45 +00:00
Miguel de Icaza d9fe0856e8 2007-11-01 Miguel de Icaza <[email protected]>
* 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
2007-11-01 23:45:24 +00:00
Dick Porter e3c85ecc7b 2007-10-30 Dick Porter <[email protected]>
* 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-30 13:55:11 +00:00
Robert Jordan 30ca8e180b In System.Net.Sockets:
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
2007-10-21 11:59:00 +00:00
Miguel de Icaza 3de7ce185d remove warnings
svn path=/trunk/mcs/; revision=86642
2007-09-29 19:10:22 +00:00
Gert Driesen d1010873e3 * Socket.cs: Removed unused method.
svn path=/trunk/mcs/; revision=86217
2007-09-22 16:49:17 +00:00
Dick Porter 4ca63a4b2a 2007-08-02 Dick Porter <[email protected]>
* Socket.cs: Patch from Brian Nickel ([email protected]) to
	improve EndPoint handling.



svn path=/trunk/mcs/; revision=83276
2007-08-02 12:26:56 +00:00
Gert Driesen a3ded8795b * Socket.cs: Code formatting. Marked not implemented methods as TODO.
Removed extra spaces.

svn path=/trunk/mcs/; revision=81606
2007-07-08 18:54:13 +00:00
Dick Porter 0d715e735d 2007-07-04 Dick Porter <[email protected]>
* Socket.cs: Don't set DontFragment by default for IPv6 sockets.
	Fixes bug 81985.



svn path=/trunk/mcs/; revision=81344
2007-07-04 16:20:26 +00:00
Adar Wesley 831089227a 2007-05-16 Adar Wesley <[email protected]>
* System20.csproj: added classes to compilation set IOControlCode.cs,
	IPPacketInformation.cs

	* CookieCollection.cs: added missing method strongly typed CopyTo.

	* CredentialCache.cs: added missing methods Add, Remove, GetCredential

	* HttpWebRequest.jvm.cs: added missing ClientCertificates getter.

	* ServicePoint.cs: added missing method CloseConnectionGroup.

	* WebClient.cs: added missing methods OnDownloadProgressChanged,
	OnUploadProgressChanged, GetWebRequest, GetWebResponse

	* WebHeaderCollection.cs: added missing methods IsRestricted, Add,
	Remove, Set.

	* WebProxy.cs: added missing method GetObjectData.

	* Socket.jvm.cs: added missing methods EndDisconnect, IOControl,
	Send 2.0 overloads, Receive 2.0 overloads, ReceiveMessageFrom,
	BeginReceiveMessageFrom, EndReceiveMessageFrom, 
	EndAccept 2.0 overloads, BeginSend, EndSend, BeginReceive, 
	EndReceive, SendFile, BeginSendFile, EndSendFile, Disconnect,
	DuplicateAndClose

svn path=/trunk/mcs/; revision=77472
2007-05-16 12:03:13 +00:00
Igor Zelmanovich 6577706197 2007-05-09 Igor Zelmanovich <[email protected]>
* Socket.jvm.cs: Handle property throws NotImplementedException.	

svn path=/trunk/mcs/; revision=77018
2007-05-09 14:11:06 +00:00
Igor Zelmanovich 6f3ec291af 2007-05-09 Igor Zelmanovich <[email protected]>
* Win32Exception.cs:
	added MonoNotSupported attribute for TARGATE_JVM.	
		
	* NetworkStream.cs:
	* TcpClient.cs:
	* TcpListener.cs:
	* UdpClient.cs:			
	added MonoNotSupported attribute for TARGATE_JVM.	

svn path=/trunk/mcs/; revision=76996
2007-05-09 11:15:35 +00:00
Igor Zelmanovich b9bb9f9fc5 refactoring:
fixing line endings, no changes.

svn path=/trunk/mcs/; revision=76994
2007-05-09 09:51:07 +00:00
Konstantin Triger cdb8b6daa0 access selector resources before it's closed
svn path=/trunk/mcs/; revision=76072
2007-04-22 16:56:39 +00:00
Gert Driesen 155199945b * TcpClient.cs: Do not initialize network stream in Connect. In
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
2007-03-11 13:02:52 +00:00
Ilya Kharmatsky 4552197281 Additional stubs for net_2_0 methods inserted, bugs fixes (introduced help
method - EnsureStillUsable)


svn path=/trunk/mcs/; revision=72027
2007-01-31 15:03:59 +00:00
Ilya Kharmatsky 77147055a3 Fixing the problems with compilation under JVM configuration (in Grasshopper),
by adding stubs and missing classes in net_2_0 for configuration. 


svn path=/trunk/mcs/; revision=71812
2007-01-28 17:16:39 +00:00
Dick Porter dfef4f8112 2007-01-26 Dick Porter <[email protected]>
* 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
2007-01-26 17:57:31 +00:00
Dick Porter 75ed1e07ec 2007-01-26 Dick Porter <[email protected]>
* 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
2007-01-26 14:27:47 +00:00
Dick Porter 3310e94b01 2007-01-24 Dick Porter <[email protected]>
* IOControlCode.cs: 
	* SocketInformationOptions.cs: 
	* TransmitFileOptions.cs: Fix enum values

	* AddressFamily.cs: Not Serializable in the 2.0 profile



svn path=/trunk/mcs/; revision=71605
2007-01-24 16:15:58 +00:00
Dick Porter 164ee390b7 2007-01-24 Dick Porter <[email protected]>
* 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
2007-01-24 15:26:47 +00:00
Dick Porter 9dfddd1985 2007-01-23 Dick Porter <[email protected]>
* 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
2007-01-23 21:40:58 +00:00
Dick Porter f75e3a4aac 2007-01-23 Dick Porter <[email protected]>
* 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
2007-01-23 21:08:28 +00:00
Miguel de Icaza dd87eabb55 2007-01-22 Miguel de Icaza <[email protected]>
* Socket.cs: Move the throw new NotImplementedException ()
	elsewhere to prevent Moma reports.

svn path=/trunk/mcs/; revision=71458
2007-01-22 20:18:23 +00:00
Dick Porter 97d4f4d07e 2007-01-20 Dick Porter <[email protected]>
* 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
2007-01-20 10:06:54 +00:00
Dick Porter 556648b407 2007-01-11 Dick Porter <[email protected]>
* System.dll.sources: Add System.Net.Sockets/{IOControlCode,SocketInformation,SocketInformationOptions,TransmitFileOptions}.cs

2007-01-11  Dick Porter  <[email protected]>

	* Win32Exception.cs: Add error 50 (ERROR_NOT_SUPPORTED)

2007-01-11  Dick Porter  <[email protected]>

	* IOControlCode.cs: 
	* SocketInformation.cs: 
	* Socket.cs: 
	* UdpClient.cs: 2.0 profile updates, loosely based on a patch by
	Sridhar Kulkarni.

	* SocketInformationOptions.cs: 
	* TransmitFileOptions.cs: Implemented by Sridhar Kulkarni
	([email protected])



svn path=/trunk/mcs/; revision=70853
2007-01-11 13:30:28 +00:00
Miguel de Icaza 40d14c161e To improve Moma Reports
svn path=/trunk/mcs/; revision=70150
2006-12-28 01:03:29 +00:00
Paolo Molaro bc7743b539 Wed Dec 13 12:04:02 CET 2006 Paolo Molaro <[email protected]>
* Socket.cs: stub ReceiveBufferSize and SendBufferSize to
	get ironpython to compile.


svn path=/trunk/mcs/; revision=69442
2006-12-13 11:04:59 +00:00
Konstantin Triger c2356bb7ac adding 2.0 configuration support
svn path=/trunk/mcs/; revision=68906
2006-12-03 17:09:44 +00:00
Miguel de Icaza c83abd9c82 Remove MonoTODOs that should not be there
svn path=/trunk/mcs/; revision=68539
2006-11-27 23:05:00 +00:00
Dick Porter 32156051a8 2006-11-23 Dick Porter <[email protected]>
* Socket.cs: Only set Connected = true in Poll() and Select() if
        the socket error status is 0.  Fixes bug 79878.



svn path=/trunk/mcs/; revision=68399
2006-11-23 16:01:44 +00:00
Andrew Skiba cb848d4460 rename all jvm-only files to jvm.cs
svn path=/trunk/mcs/; revision=67540
2006-11-08 15:45:46 +00:00
Andrew Skiba 901e94e1e8 compile System.dll in GH
svn path=/trunk/mcs/; revision=67512
2006-11-08 12:34:58 +00:00
Andrew Skiba fd9460c869 TARGET_JVM
svn path=/trunk/mcs/; revision=66038
2006-09-28 14:36:43 +00:00
Gonzalo Paniagua Javier 8a03479116 2006-09-11 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: update the SocketOperation enum.


svn path=/trunk/mcs/; revision=65247
2006-09-11 17:48:18 +00:00
Gonzalo Paniagua Javier f473ef5d59 2006-08-16 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: replace hardcoded error numbers with the SocketError
	values. When ReceiveTimeout is set on a blocking socket, correctly
	report timeouts in the generated exception.
	
	* SocketException.cs: add new internal ctor (int, string).


svn path=/trunk/mcs/; revision=63802
2006-08-16 10:33:15 +00:00
Miguel de Icaza 997998b637 2006-08-12 Miguel de Icaza <[email protected]>
* Socket.cs (NoDelay): Implement.

svn path=/trunk/mcs/; revision=63686
2006-08-13 20:27:54 +00:00
Gonzalo Paniagua Javier 4f71124870 warnings
svn path=/trunk/mcs/; revision=63624
2006-08-10 20:37:09 +00:00
Gonzalo Paniagua Javier c2bf44ca7e 2006-06-30 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: patch from Sanghyeon Seo that implements
	(Send|Receive)Timeout for 2.0.
	* MulticastOption.cs: more 2.0 stuff.


svn path=/trunk/mcs/; revision=62157
2006-06-30 15:40:56 +00:00
Atsushi Eno a421054973 2006-06-28 Atsushi Enomoto <[email protected]>
* Socket.cs : use ConfigurationManager.GetSection() under NET_2_0.
	  Also make sure to avoid NRE.


svn path=/trunk/mcs/; revision=62117
2006-06-28 16:05:20 +00:00
Zoltan Varga 7d658ec48d 2006-06-24 Zoltan Varga <[email protected]>
* Socket.cs: Add stubs for net 2.0 SendTimeout and ReceiveTimeout properties.

svn path=/trunk/mcs/; revision=62020
2006-06-24 17:56:25 +00:00
Zoltan Varga ff18fb5cbe 2006-06-20 Zoltan Varga <[email protected]>
* ProtocolType.cs SocketOptionName.cs: Add missing net 2.0 fields.

svn path=/trunk/mcs/; revision=61874
2006-06-20 14:02:47 +00:00
Gert Driesen d3cc422c52 * NetworkStream.cs: Marked Dispose (bool) virtual on 1.x profile.
svn path=/trunk/mcs/; revision=61255
2006-05-30 10:02:48 +00:00
Gonzalo Paniagua Javier 13a69f6635 2006-04-10 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs:
	* SocketError.cs: implemented Reseive/Send overloads that do not throw
	in case of error. Patch by Tomi Valkeinen.


svn path=/trunk/mcs/; revision=59333
2006-04-10 22:49:59 +00:00
Miguel de Icaza a5bd130af9 2006-03-11 Miguel de Icaza <[email protected]>
* Uri.cs: Pragma disable warning 612 (Obsolete methods are being
	used by us internally).

	Ponder: should we instead move our methods to use new versions of
	the Obsoleted ones?

2006-03-11  Miguel de Icaza  <[email protected]>

	* CodeNamespaceImportCollection.cs: It turns out that a lot of the
	errors flagged with "!" were just missing explicit interface
	implementations.  

	Implement.

2006-03-11  Miguel de Icaza  <[email protected]>

	* CodeDomConfigurationHandler.cs: Comment out unused methods. 

	* TempFileCollection.cs: Implement explicitly some interface
	methods to get rid of the "!" errors on CorCompare.

2006-03-11  Miguel de Icaza  <[email protected]>

	* Queue.cs: Flag as serializable.

	* LinkedList.cs (OnDeserialization): Fix signature. 

	* SortedList.cs: Implement explicitly a few methods that were
	flagged by corcompare. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* IOrderedDictionary.cs: Flag GetEnumerator as a "new" method to
	avoid warning.

2006-03-11  Miguel de Icaza  <[email protected]>

	* ConfigurationSettings.cs (ChangeConfigurationSettings): Make
	internal to avoid warnings.  This routine is called from
	System.Web with MethodInfo.Invoke.

2006-03-11  Miguel de Icaza  <[email protected]>

	* DeflateStream.cs: Comment out DllImport that was not being
	used. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* y

	* SerialPort.cs: Remove unused variable (writeBuffer). 

	* SerialPortStream.cs (Dispose): override, not new.

2006-03-11  Miguel de Icaza  <[email protected]>

	* WebClient.cs: Only expose the right methods to avoid warnings. 

	* FtpDataStream.cs (Dispose): Fix signature.

	* FtpWebResponse.cs: Comment out keepAlive field (unused, sounds
	like we are missing features here).

	* IPAddress.cs: Move m_HashCode property to the end, and set
	pragmas to disable warnings.

2006-03-11  Miguel de Icaza  <[email protected]>

	* MailAddress.cs: Comment out unused field to remove warning. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* NetworkChange.cs: Use pragmas to eliminate warnings from events
	that we do not trigger yet.

	This is a candidate for using Aaron's NetworkManager code.  But
	would make us depend on d-bus.

	* NetworkInformationException.cs: Use error_code for ErrorCode,
	instead of NativeErrorCode.   Fixes warning. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* AuthenticatedStream.cs: Fixed normative parameter names (yes, we
	need to do this everywhere one day).

	(Close): actually obey the "leaveInnerStreamOpen" setting from the
	constructor. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* NetworkStream.cs (Dispose): Use the right signature depending on
	the profile being built.

2006-03-11  Miguel de Icaza  <[email protected]>

	* X509Chain.cs: Flagged member as internal to avoid unused warning.

	* X500DistinguishedName.cs: Comment out unused names and move
	temporary unused variables inside the comments that were removed 



svn path=/trunk/mcs/; revision=57836
2006-03-11 19:07:56 +00:00
Gonzalo Paniagua Javier dc22e47aac 2006-03-09 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: pass something not empty to the unixep ctor.


svn path=/trunk/mcs/; revision=57757
2006-03-09 23:43:53 +00:00
Dick Porter 613a58660d 2006-03-03 Dick Porter <[email protected]>
* UdpClient.cs: Fix IPv6 family check.  Fixes bug 77689.


svn path=/trunk/mcs/; revision=57548
2006-03-03 17:17:30 +00:00
Gonzalo Paniagua Javier 6e1f6757b7 2006-02-23 Gonzalo Paniagua Javier <[email protected]>
* TcpClient.cs: when the socket is not connected, don't try to set the
	socket options, as they are ignored on linux. Wait until Connect
	succeeds and then apply the options.


svn path=/trunk/mcs/; revision=57216
2006-02-23 21:30:14 +00:00