Initial commit
This commit is contained in:
commit
5584446828
37 changed files with 7962 additions and 0 deletions
23
Sockets/INetStream.cs
Normal file
23
Sockets/INetStream.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Secucore
|
||||
*
|
||||
* Copyright (C) 2023 Trevor Hall
|
||||
* All rights reserved.
|
||||
*
|
||||
* This software may be modified and distributed under the terms
|
||||
* of the MIT license.
|
||||
*
|
||||
*/
|
||||
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SecuCore.Sockets
|
||||
{
|
||||
public interface INetStream
|
||||
{
|
||||
public Task<bool> WriteAsync(byte[] dat, int offset, int length);
|
||||
public Task<int> ReadAsync(byte[] dst, int offset, int length);
|
||||
public Task<byte[]> ReadUntilCRLF();
|
||||
public Task<byte[]> ReadUntilCRLFCRLF();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue