Commit Graph
45 Commits
Author SHA1 Message Date
Carlos Alberto Cortez 6506016e1c 2007-09-14 Carlos Alberto Cortez <[email protected]>
* WinSerialStream.cs: Fix the signature of ClearCommError.
	Fixes #348751.


svn path=/trunk/mcs/; revision=112973
2008-09-14 21:55:20 +00:00
Carlos Alberto Cortez f15005a06b 2008-09-14 Carlos Alberto Cortez <[email protected]>
* SerialPort.cs: Throw ArgumentException if NewLine gets an empty
	string value.
	Fixes #339012.


svn path=/trunk/mcs/; revision=112964
2008-09-14 17:39:56 +00:00
Carlos Alberto Cortez 26813c97b3 2008-09-08 Carlos Alberto Cortez <[email protected]>
* SerialPort.cs: In BaseStream property call CheckOpen instead of
	duplicating the code.


svn path=/trunk/mcs/; revision=112498
2008-09-08 12:34:47 +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 564992162e 2007-12-03 Miguel de Icaza <[email protected]>
* SerialPort.cs: Apply patch from Martin Green
	<[email protected]> to support Serial Ports enumeration on
	Windows.

svn path=/trunk/mcs/; revision=90583
2007-12-03 19:40:03 +00:00
Atsushi Eno 96bc55f3ca 2007-11-13 Atsushi Enomoto <[email protected]>
* SerialPort.cs :
	  Added [DefaultValue]. For PortName it is useless though.
	  Do not use ObsoleteAttribute for MonoTODO role.


svn path=/trunk/mcs/; revision=89534
2007-11-13 09:46:19 +00:00
Miguel de Icaza 79f4eed6d3 2007-11-05 Miguel de Icaza <[email protected]>
* SerialPort.cs: Cope with multi-character newlines.  Fixes #321988.

svn path=/trunk/mcs/; revision=88869
2007-11-05 14:49:17 +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
Carlos Alberto Cortez 5770c73a0a 2007-07-01 Carlos Alberto Cortez <[email protected]>
* SerialPort.cs: Don't throw ArgumentOutOfRangeException when the
	buffer has Length = 0 (and has the appropriate arguments).


svn path=/trunk/mcs/; revision=81151
2007-07-02 01:40:00 +00:00
Atsushi Eno e8dc24997c 2007-05-21 Atsushi Enomoto <[email protected]>
* SerialPort.cs : slightly boring 2.0 attributes.


svn path=/trunk/mcs/; revision=77737
2007-05-21 02:15:18 +00:00
Sebastien Pouliot 067ac624b1 2007-05-01 Sebastien Pouliot <[email protected]>
* WinSerialStream.cs: Fix build due to NativeOverlapped being updated
	to 2.0 definition (int to IntPtr).


svn path=/trunk/mcs/; revision=76535
2007-05-01 17:25:38 +00:00
Paolo Molaro c5bdf444a2 Wed Apr 11 15:40:55 CEST 2007 Paolo Molaro <[email protected]>
* WinSerialStream.cs: fixed logic for signal value check (bug #81342).


svn path=/trunk/mcs/; revision=75610
2007-04-11 13:43:24 +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
Andrew Skiba 9193ddbb24 TARGET_JVM
svn path=/trunk/mcs/; revision=66027
2006-09-28 13:32:30 +00:00
Gonzalo Paniagua Javier 4f503bd7b8 oops
svn path=/trunk/mcs/; revision=63791
2006-08-15 20:47:50 +00:00
Gonzalo Paniagua Javier fc384a1caf 2006-08-15 Gonzalo Paniagua Javier <[email protected]>
* SerialPort.cs: allow settings StopBits.None.


svn path=/trunk/mcs/; revision=63790
2006-08-15 20:42:40 +00:00
Chris Toshok f04fcf0bfe 2006-08-14 Chris Toshok <[email protected]>
* SerialPort.cs: the paths returned by Directory.GetFiles have the
	directory at the beginning of the string.


svn path=/trunk/mcs/; revision=63725
2006-08-14 15:37:59 +00:00
Miguel de Icaza d82e3e883c 2006-08-13 Miguel de Icaza <[email protected]>
* SerialPort.cs (ReadTo): Implemented.
	Add a couple of missing checks.

svn path=/trunk/mcs/; revision=63694
2006-08-14 01:46:11 +00:00
Miguel de Icaza 0c94e2fc97 2006-08-13 Miguel de Icaza <[email protected]>
* SerialPort.cs: Also handle ttyUSB for Chris.

svn path=/trunk/mcs/; revision=63692
2006-08-14 01:18:03 +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 fc71db5a36 * SerialPort.cs:
* WinSerialStream.cs: Actually plug the Win serial stream
	in the SerialPort and use it if we are on Windows (use std
	stream otherwise).

2005-05-08  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=60402
2006-05-08 13:44:25 +00:00
Carlos Alberto Cortez f637bb3807 2005-05-08 Carlos Alberto Cortez <[email protected]>
* WinSerialStream.cs: Implement some bits needed for
	the backend thing.


svn path=/trunk/mcs/; revision=60400
2006-05-08 12:49:28 +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 bbbd4ad0bc 2006-05-06 Carlos Alberto Cortez <[email protected]>
* ISerialStream.cs: New internal interface used for 
	accessing the backend streams functionality.


svn path=/trunk/mcs/; revision=60353
2006-05-06 15:37:48 +00:00
Carlos Alberto Cortez 6dcd3635ec 2006-04-20 Carlos Alberto Cortez <[email protected]>
* WinSerialPort.cs: Inital import of the backend stream
	for Windows support.
	

svn path=/trunk/mcs/; revision=59729
2006-04-21 06:47:26 +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 905eb264b8 2006-04-05 Carlos Alberto Cortez <[email protected]>
* SerialPort.cs: Add protected Dispose method, and move
	the Close stuff there.
	

svn path=/trunk/mcs/; revision=59051
2006-04-05 07:22:04 +00:00
Carlos Alberto Cortez a34ab38198 2006-04-04 Carlos Alberto Cortez <[email protected]>
* SerialPort.cs: Re-arrange values for ctors (keep things
	clean).
	

svn path=/trunk/mcs/; revision=59031
2006-04-04 17:53:01 +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 6d92fba9a1 2006-03-27 Carlos Alberto Cortez <[email protected]>
* SerialPort.cs: Inherit from Component, and use protected
	Events property to save the event handlers. Also add internal
	methods to trigger the events and remove pragmas.


svn path=/trunk/mcs/; revision=58580
2006-03-27 14:09:27 +00:00
Miguel de Icaza 9b9d82ebce 2006-03-15 Miguel de Icaza <[email protected]>
* SerialPort.cs: We will do detection of systems differently as we
	discussed over email.  Drop malloc/free/uname calls.

svn path=/trunk/mcs/; revision=58031
2006-03-15 18:23:15 +00:00
Carlos Alberto Cortez c70d09bebb 2006-03-15 Carlos Alberto Cortez <[email protected]>
* SerialPort.cs: Add basic detection of serial ports and
	default serial port.


svn path=/trunk/mcs/; revision=57990
2006-03-15 07:35:21 +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 496b8e22e1 2006-02-29 Carlos Alberto Cortez <[email protected]>
* SerialPort.cs:
	* SerialReceivedEventArgs.cs:
	* SerialErrorEventArgs.cs:
	* SerialPinChangedEventArgs.cs: Fix signatures and values
	related to events.
	

svn path=/trunk/mcs/; revision=57496
2006-03-02 06:03:07 +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
Carlos Alberto Cortez 57ae6892c0 2006-02-21 Carlos Alberto Cortez <[email protected]>
* SerialPort.cs: Little work on support the Read methods.


svn path=/trunk/mcs/; revision=57117
2006-02-21 23:33:47 +00:00
Carlos Alberto Cortez a9e25ebf36 2006-02-14 Carlos Alberto Cortez <[email protected]>
* SerialPort.cs: Little work on default values and
	exception report.
	
	* Parity.cs:
	* Handshake.cs:
	* StopBits.cs: New enum files (taken outside SerialPort
	and with the right values now).


svn path=/trunk/mcs/; revision=56885
2006-02-15 08:05:29 +00:00
Carlos Alberto Cortez 2c0643ffee 2006-02-13 Carlos Alberto Cortez <[email protected]>
* SerialPort.cs: Work on Encoding property and use it
	in Write methods.
	

svn path=/trunk/mcs/; revision=56847
2006-02-14 07:13:36 +00:00
Carlos Alberto Cortez 70b4a2710b 2006-02-10 Carlos Alberto Cortez <[email protected]>
* SerialError.cs:
	* SerialData.cs:
	* SerialPinChange.cs: New enums.
	

svn path=/trunk/mcs/; revision=56745
2006-02-10 08:03:16 +00:00
Zoltan Varga 7f210f531a 2004-12-26 Zoltan Varga <[email protected]>
* System.IO.Ports/ChangeLog: New file.

svn path=/trunk/mcs/; revision=38093
2004-12-26 20:03:27 +00:00