Skip to main content

INetworkProvider Interface

Namespace: GHIElectronics.TinyCLR.Networking · Assembly: GHIElectronics.TinyCLR.Networking

No description available.

public interface INetworkProvider

Methods

Create(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType)

int Create(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType)

No description available.

ParameterTypeDescription
addressFamilyAddressFamily
socketTypeSocketType
protocolTypeProtocolType

Returns int

Close(int socket)

void Close(int socket)

No description available.

ParameterTypeDescription
socketint

Shutdown(int socket, SocketShutdown how)

void Shutdown(int socket, SocketShutdown how)

Powers off until either one of the selected wake-up pins asserts or the RTC alarm fires. (inherited)

ParameterTypeDescription
socketint
howSocketShutdown

Bind(int socket, SocketAddress address)

void Bind(int socket, SocketAddress address)

No description available.

ParameterTypeDescription
socketint
addressSocketAddress

Listen(int socket, int backlog)

void Listen(int socket, int backlog)

No description available.

ParameterTypeDescription
socketint
backlogint

Accept(int socket)

int Accept(int socket)

No description available.

ParameterTypeDescription
socketint

Returns int

Connect(int socket, SocketAddress address)

void Connect(int socket, SocketAddress address)

No description available.

ParameterTypeDescription
socketint
addressSocketAddress

Available(int socket)

int Available(int socket)

No description available.

ParameterTypeDescription
socketint

Returns int

Poll(int socket, int microSeconds, SelectMode mode)

bool Poll(int socket, int microSeconds, SelectMode mode)

No description available.

ParameterTypeDescription
socketint
microSecondsint
modeSelectMode

Returns bool

Send(int socket, byte[] buffer, int offset, int count, SocketFlags flags)

int Send(int socket, byte[] buffer, int offset, int count, SocketFlags flags)

No description available.

ParameterTypeDescription
socketint
bufferbyte[]
offsetint
countint
flagsSocketFlags

Returns int

Receive(int socket, byte[] buffer, int offset, int count, SocketFlags flags)

int Receive(int socket, byte[] buffer, int offset, int count, SocketFlags flags)

No description available.

ParameterTypeDescription
socketint
bufferbyte[]
offsetint
countint
flagsSocketFlags

Returns int

SendTo(int socket, byte[] buffer, int offset, int count, SocketFlags flags, SocketAddress address)

int SendTo(int socket, byte[] buffer, int offset, int count, SocketFlags flags, SocketAddress address)

No description available.

ParameterTypeDescription
socketint
bufferbyte[]
offsetint
countint
flagsSocketFlags
addressSocketAddress

Returns int

ReceiveFrom(int socket, byte[] buffer, int offset, int count, SocketFlags flags, ref SocketAddress address)

int ReceiveFrom(int socket, byte[] buffer, int offset, int count, SocketFlags flags, ref SocketAddress address)

No description available.

ParameterTypeDescription
socketint
bufferbyte[]
offsetint
countint
flagsSocketFlags
addressref SocketAddress

Returns int

GetRemoteAddress(int socket, out SocketAddress address)

void GetRemoteAddress(int socket, out SocketAddress address)

No description available.

ParameterTypeDescription
socketint
addressout SocketAddress

GetLocalAddress(int socket, out SocketAddress address)

void GetLocalAddress(int socket, out SocketAddress address)

No description available.

ParameterTypeDescription
socketint
addressout SocketAddress

GetOption(int socket, SocketOptionLevel optionLevel, SocketOptionName optionName, byte[] optionValue)

void GetOption(int socket, SocketOptionLevel optionLevel, SocketOptionName optionName, byte[] optionValue)

No description available.

ParameterTypeDescription
socketint
optionLevelSocketOptionLevel
optionNameSocketOptionName
optionValuebyte[]

SetOption(int socket, SocketOptionLevel optionLevel, SocketOptionName optionName, byte[] optionValue)

void SetOption(int socket, SocketOptionLevel optionLevel, SocketOptionName optionName, byte[] optionValue)

No description available.

ParameterTypeDescription
socketint
optionLevelSocketOptionLevel
optionNameSocketOptionName
optionValuebyte[]

AuthenticateAsClient(int socketHandle, string targetHost, X509Certificate caCertificate, X509Certificate clientCertificate, SslProtocols sslProtocols, SslVerification sslVerification)

int AuthenticateAsClient(int socketHandle, string targetHost, X509Certificate caCertificate, X509Certificate clientCertificate, SslProtocols sslProtocols, SslVerification sslVerification)

No description available.

ParameterTypeDescription
socketHandleint
targetHoststring
caCertificateX509Certificate
clientCertificateX509Certificate
sslProtocolsSslProtocols
sslVerificationSslVerification

Returns int

AuthenticateAsServer(int socketHandle, X509Certificate certificate, SslProtocols sslProtocols)

int AuthenticateAsServer(int socketHandle, X509Certificate certificate, SslProtocols sslProtocols)

No description available.

ParameterTypeDescription
socketHandleint
certificateX509Certificate
sslProtocolsSslProtocols

Returns int

SecureRead(int handle, byte[] buffer, int offset, int count)

int SecureRead(int handle, byte[] buffer, int offset, int count)

No description available.

ParameterTypeDescription
handleint
bufferbyte[]
offsetint
countint

Returns int

SecureWrite(int handle, byte[] buffer, int offset, int count)

int SecureWrite(int handle, byte[] buffer, int offset, int count)

No description available.

ParameterTypeDescription
handleint
bufferbyte[]
offsetint
countint

Returns int

GetHostByName(string name, out string canonicalName, out SocketAddress[] addresses)

void GetHostByName(string name, out string canonicalName, out SocketAddress[] addresses)

No description available.

ParameterTypeDescription
namestring
canonicalNameout string
addressesout SocketAddress[]