Commit Graph
21 Commits
Author SHA1 Message Date
Zoltan Varga bfc3336224 [bcl] Catch exceptions thrown by SerialPortStream.Dispose () when called from the finalizer. Fixes #15514. 2014-08-29 15:06:25 -04:00
Miguel de Icaza f48ceb9860 [System] Removal of the NET_2_0 in the source code
Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
2012-06-02 13:16:40 -04:00
Konrad Kruczyński e52c4c677f Edited mcs/class/System/System.IO.Ports/SerialPortStream.cs via GitHub 2011-05-04 04:51:44 -07:00
Konrad M. Kruczynski 718b24e6ae Added exception in case of using nonstandard baud rate on POSIX boxes, which is not supported by termios. OutOfRange rather than NotSupported exception due to interface compatibility. 2011-05-01 14:20:54 +02:00
Leszek 'skolima' Ciesielski 3d0184ae01 2010-01-25 Leszek Ciesielski <[email protected]>
* SerialPortStream.cs: Read was returning requested count instead
        of actual bytes read. Thanks to Thad Thompson for spotting this.


svn path=/trunk/mcs/; revision=150134
2010-01-25 16:07:01 +00:00
Leszek 'skolima' Ciesielski 3dd68a17ca 2010-01-22 Leszek Ciesielski <[email protected]>
* SerialPortStream.cs: Check for error on every native call

svn path=/trunk/mcs/; revision=150062
2010-01-22 10:31:04 +00:00
Leszek 'skolima' Ciesielski 0cfe5fd8ab * SerialPortStream.cs: Throw exception when errors occur in Close()
svn path=/trunk/mcs/; revision=142302
2009-09-21 08:20:59 +00:00
Carlos Alberto Cortez 6bbb1ebd43 2008-02-19 Carlos Alberto Cortez <[email protected]>
* SerialPortStream.cs: Set DllImport.SetLastError to true for
	all MonoPosixHelper functions, so in case of error we can retrieve the
	error and print a simple but effective message about it.


svn path=/trunk/mcs/; revision=96216
2008-02-20 01:14:38 +00:00
Miguel de Icaza 7333a80394 2007-10-13 Miguel de Icaza <[email protected]>
* SerialPortStream.cs: Send a break on the Unix case.

svn path=/trunk/mcs/; revision=87453
2007-10-14 03:13:12 +00:00
Miguel de Icaza c8088c1d5e Second part of fix for bug #81967
2007-08-12  Lukasz Byczynski <[email protected]>

	* SerialPortStream.cs: added timeout handling on write

	* WinSerialStream.cs: fixed setting handshake flags 

svn path=/trunk/mcs/; revision=83922
2007-08-12 16:18:32 +00:00
Miguel de Icaza d8714697c3 2006-11-18 Jelle Hissink <[email protected]>
* SerialPortStream.cs: Fix the parameters in Read, and also poll
	before the read, so we can thorw the TimeoutException.

svn path=/trunk/mcs/; revision=68125
2006-11-18 16:40:43 +00:00
Miguel de Icaza 18159ff054 2006-08-13 Miguel de Icaza <[email protected]>
* SerialPortStream.cs (BytesToRead, BytesToWrite): Implement. 

	* SerialPort.cs (ReadByte): Go directly to the stream, no need to
	call the wrapper code.

	(ReadChar): implement.

	(ReadLine): implement.
	
	Add DefaultValueAttributes to various methods.

	* SerialPortStream.cs, WinSerialStream.cs: Use the same checking
	we use elsewhere for parameters.


svn path=/trunk/mcs/; revision=63688
2006-08-13 22:13:18 +00:00
Carlos Alberto Cortez 98fe6e1118 2005-05-12 Carlos Alberto Cortez <[email protected]>
* ISerialStream.cs: Add support for break state.
	* SerialPort.cs: Likewise.
	* WinSerialStream.cs: Add support for break state and
	some other bits (BytesToRead, BytesToWrite, DsrHolding,
	CDHolding, CtsHolding, DiscardIn, DiscardOut).
	* SerialPortStream.cs: Add a SetBreak function to
	implement the updated ISerialStream interface (not implemented
	by now).


svn path=/trunk/mcs/; revision=60663
2006-05-12 20:18:55 +00:00
Carlos Alberto Cortez 94cc5d0052 2005-05-06 Carlos Alberto Cortez <[email protected]>
* ISerialStream.cs:
	* SerialPortStream.cs:
	* SerialPort.cs:
	* SerialSignal.cs:
	Some changes to make SerialPorStream implement ISerialInterface,
	and be able to have OS-depending backends.
	

svn path=/trunk/mcs/; revision=60368
2006-05-07 00:57:07 +00:00
Carlos Alberto Cortez f83fac0c13 2006-04-06 Carlos Alberto Cortez <[email protected]>
* SerialPort.cs:
	* SerialPortStream.cs: Add signals managing.
	* SerialSignal.cs: New.
	

svn path=/trunk/mcs/; revision=59130
2006-04-06 17:55:04 +00:00
Carlos Alberto Cortez d60560548e 2006-04-03 Carlos Alberto Cortez <[email protected]>
* SerialPort.cs:
	* SerialPortStream.cs: Remove the buffers from the SerialPort
	class, and take them to SerialPortStream. We need them for
	storing the internal read (pass the buffer sizes to SerialPortStream
	ctor by now, and use those numbers when we support them).
	

svn path=/trunk/mcs/; revision=58968
2006-04-03 17:47:08 +00:00
Carlos Alberto Cortez 4dc4d777e0 2006-03-14 Carlos Alberto Cortez <[email protected]>
* SerialPort.cs:
	* SerialPortStream.cs: Change SerialPortStream ctor
	parameters and fix some related values.
	

svn path=/trunk/mcs/; revision=57944
2006-03-14 09:03:03 +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
Carlos Alberto Cortez 28cfa7ce42 2006-03-08 Carlos Alberto Cortez <[email protected]>
* SerialPort.cs:
	* SerialPortStream.cs: Small advance/cleanups.


svn path=/trunk/mcs/; revision=57711
2006-03-08 23:48:47 +00:00
Carlos Alberto Cortez cd35e90728 2006-02-28 Carlos Alberto Cortez <[email protected]>
* SerialPort.cs: 
	* SerialPortStream.cs: Cleanups and some small funcionalities
	added. Also, some code was moved to SerialPortStream, to have a 
	better design.


svn path=/trunk/mcs/; revision=57386
2006-02-28 09:11:27 +00:00
Carlos Alberto Cortez d97de9c00e * SerialPort.cs:
* SerialPortStream.cs: Move SerialPortStream to a new file,
	to have a better organization.

2006-02-21  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=57152
2006-02-22 11:25:34 +00:00