20 namespace Deveel.Data.Protocol {
30 : base(socket, FileAccess.Read) {
33 public int Available {
34 get {
return (Socket.Connected ? Socket.Available : 0); }
37 public override int Read(byte[] buffer,
int offset,
int size) {
38 if (!Socket.Connected)
41 return base.Read(buffer, offset, size);
45 public int Available {
46 get {
return stream.Available; }
49 public override bool CanRead {
53 public override bool CanWrite {
57 public override long Seek(
long offset, SeekOrigin origin) {
58 throw new NotSupportedException();
65 throw new NotSupportedException();
68 public override int Read(byte[] buffer,
int offset,
int count) {
69 return stream.Read(buffer, offset, count);
72 public override void Write(byte[] buffer,
int offset,
int count) {
73 throw new NotSupportedException();
76 public override bool CanSeek {
80 public override long Length {
81 get {
throw new NotSupportedException(); }
84 public override long Position {
85 get {
throw new NotSupportedException(); }
86 set {
throw new NotSupportedException(); }