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.
| Parameter | Type | Description |
|---|---|---|
addressFamily | AddressFamily | |
socketType | SocketType | |
protocolType | ProtocolType |
Returns int
Close(int socket)
void Close(int socket)
No description available.
| Parameter | Type | Description |
|---|---|---|
socket | int |
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)
| Parameter | Type | Description |
|---|---|---|
socket | int | |
how | SocketShutdown |
Bind(int socket, SocketAddress address)
void Bind(int socket, SocketAddress address)
No description available.
| Parameter | Type | Description |
|---|---|---|
socket | int | |
address | SocketAddress |
Listen(int socket, int backlog)
void Listen(int socket, int backlog)
No description available.
| Parameter | Type | Description |
|---|---|---|
socket | int | |
backlog | int |
Accept(int socket)
int Accept(int socket)
No description available.
| Parameter | Type | Description |
|---|---|---|
socket | int |
Returns int
Connect(int socket, SocketAddress address)
void Connect(int socket, SocketAddress address)
No description available.
| Parameter | Type | Description |
|---|---|---|
socket | int | |
address | SocketAddress |
Available(int socket)
int Available(int socket)
No description available.
| Parameter | Type | Description |
|---|---|---|
socket | int |
Returns int
Poll(int socket, int microSeconds, SelectMode mode)
bool Poll(int socket, int microSeconds, SelectMode mode)
No description available.
| Parameter | Type | Description |
|---|---|---|
socket | int | |
microSeconds | int | |
mode | SelectMode |
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.
| Parameter | Type | Description |
|---|---|---|
socket | int | |
buffer | byte[] | |
offset | int | |
count | int | |
flags | SocketFlags |
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.
| Parameter | Type | Description |
|---|---|---|
socket | int | |
buffer | byte[] | |
offset | int | |
count | int | |
flags | SocketFlags |
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.
| Parameter | Type | Description |
|---|---|---|
socket | int | |
buffer | byte[] | |
offset | int | |
count | int | |
flags | SocketFlags | |
address | SocketAddress |
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.
| Parameter | Type | Description |
|---|---|---|
socket | int | |
buffer | byte[] | |
offset | int | |
count | int | |
flags | SocketFlags | |
address | ref SocketAddress |
Returns int
GetRemoteAddress(int socket, out SocketAddress address)
void GetRemoteAddress(int socket, out SocketAddress address)
No description available.
| Parameter | Type | Description |
|---|---|---|
socket | int | |
address | out SocketAddress |
GetLocalAddress(int socket, out SocketAddress address)
void GetLocalAddress(int socket, out SocketAddress address)
No description available.
| Parameter | Type | Description |
|---|---|---|
socket | int | |
address | out SocketAddress |
GetOption(int socket, SocketOptionLevel optionLevel, SocketOptionName optionName, byte[] optionValue)
void GetOption(int socket, SocketOptionLevel optionLevel, SocketOptionName optionName, byte[] optionValue)
No description available.
| Parameter | Type | Description |
|---|---|---|
socket | int | |
optionLevel | SocketOptionLevel | |
optionName | SocketOptionName | |
optionValue | byte[] |
SetOption(int socket, SocketOptionLevel optionLevel, SocketOptionName optionName, byte[] optionValue)
void SetOption(int socket, SocketOptionLevel optionLevel, SocketOptionName optionName, byte[] optionValue)
No description available.
| Parameter | Type | Description |
|---|---|---|
socket | int | |
optionLevel | SocketOptionLevel | |
optionName | SocketOptionName | |
optionValue | byte[] |
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.
| Parameter | Type | Description |
|---|---|---|
socketHandle | int | |
targetHost | string | |
caCertificate | X509Certificate | |
clientCertificate | X509Certificate | |
sslProtocols | SslProtocols | |
sslVerification | SslVerification |
Returns int
AuthenticateAsServer(int socketHandle, X509Certificate certificate, SslProtocols sslProtocols)
int AuthenticateAsServer(int socketHandle, X509Certificate certificate, SslProtocols sslProtocols)
No description available.
| Parameter | Type | Description |
|---|---|---|
socketHandle | int | |
certificate | X509Certificate | |
sslProtocols | SslProtocols |
Returns int
SecureRead(int handle, byte[] buffer, int offset, int count)
int SecureRead(int handle, byte[] buffer, int offset, int count)
No description available.
| Parameter | Type | Description |
|---|---|---|
handle | int | |
buffer | byte[] | |
offset | int | |
count | int |
Returns int
SecureWrite(int handle, byte[] buffer, int offset, int count)
int SecureWrite(int handle, byte[] buffer, int offset, int count)
No description available.
| Parameter | Type | Description |
|---|---|---|
handle | int | |
buffer | byte[] | |
offset | int | |
count | int |
Returns int
GetHostByName(string name, out string canonicalName, out SocketAddress[] addresses)
void GetHostByName(string name, out string canonicalName, out SocketAddress[] addresses)
No description available.
| Parameter | Type | Description |
|---|---|---|
name | string | |
canonicalName | out string | |
addresses | out SocketAddress[] |