System.Drawing: added email to icon and test file headers
[mono.git] / mcs / class / System / System.IO.Ports / ISerialStream.cs
1 //
2 // System.IO.Ports.ISerialStream.cs
3 //
4 // Authors:
5 //      Carlos Alberto Cortez (calberto.cortez@gmail.com)
6 //
7 // (c) Copyright 2006 Novell, Inc. (http://www.novell.com)
8 // 
9
10 using System;
11
12 #if NET_2_0
13
14 namespace System.IO.Ports
15 {
16         interface ISerialStream : IDisposable
17         {
18                 int Read (byte [] buffer, int offset, int count);
19                 void Write (byte [] buffer, int offset, int count);
20                 void SetAttributes (int baud_rate, Parity parity, int data_bits, StopBits sb, Handshake hs);
21                 void DiscardInBuffer ();
22                 void DiscardOutBuffer ();
23                 SerialSignal GetSignals ();
24                 void SetSignal (SerialSignal signal, bool value);
25                 void SetBreakState (bool value);
26                 void Close ();
27
28                 int BytesToRead { get; }
29                 int BytesToWrite { get; }
30                 int ReadTimeout { get; set; }
31                 int WriteTimeout { get; set; }
32         }
33 }
34
35 #endif
36