mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-04 23:42:10 +01:00
26 lines
678 B
C#
26 lines
678 B
C#
|
using Ryujinx.HLE.HOS.Services.Sockets.Bsd;
|
|||
|
using System;
|
|||
|
using System.Net.Sockets;
|
|||
|
|
|||
|
namespace Ryujinx.HLE.HOS.Services.Ssl.SslService
|
|||
|
{
|
|||
|
interface ISslConnectionBase: IDisposable
|
|||
|
{
|
|||
|
int SocketFd { get; }
|
|||
|
|
|||
|
ISocket Socket { get; }
|
|||
|
|
|||
|
ResultCode Handshake(string hostName);
|
|||
|
|
|||
|
ResultCode GetServerCertificate(string hostname, Span<byte> certificates, out uint storageSize, out uint certificateCount);
|
|||
|
|
|||
|
ResultCode Write(out int writtenCount, ReadOnlyMemory<byte> buffer);
|
|||
|
|
|||
|
ResultCode Read(out int readCount, Memory<byte> buffer);
|
|||
|
|
|||
|
ResultCode Peek(out int peekCount, Memory<byte> buffer);
|
|||
|
|
|||
|
int Pending();
|
|||
|
}
|
|||
|
}
|