hawkeye camera support(not tested)

This commit is contained in:
meelstorm
2025-08-19 12:45:50 +02:00
parent f80b275ad8
commit 6ef6aced8d
170 changed files with 20190 additions and 72 deletions

View File

@@ -0,0 +1,49 @@
using System;
using System.IO;
namespace UdtSharp
{
public class UdtNetworkStream : Stream
{
public UdtNetworkStream(UdtSocket socket)
{
mSocket = socket;
}
public override bool CanRead { get { return true; } }
public override bool CanSeek { get { return false; } }
public override bool CanWrite { get { return true; } }
public override long Length { get { throw new NotImplementedException(); } }
public override long Position { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } }
public override void Flush()
{
}
public override int Read(byte[] buffer, int offset, int count)
{
return mSocket.Receive(buffer, offset, count);
}
public override long Seek(long offset, SeekOrigin origin)
{
throw new NotImplementedException();
}
public override void SetLength(long value)
{
throw new NotImplementedException();
}
public override void Write(byte[] buffer, int offset, int count)
{
mSocket.Send(buffer, offset, count);
}
UdtSocket mSocket;
}
}