libSnp SNP31Request Class - fullphat/snarl_network_protocol GitHub Wiki

Synopsis

Wraps a Snarl Network Protocol 3.1 request. This class cannot be created natively; instead it is returned in response to the various SNP31.xRequest() methods.

Properties

Name Type Description
Command Commands The type of request. See the Commands enum.

Methods

SendTo()

Syntax

public SNP31Response SendTo(string host, int port)
public SNP31Response SendTo(IPAddress ipAddress, int port)
public SNP31Response SendTo(IPEndPoint endPoint)

Arguments

Name Description
host The name or IP address (in IPv4 dotted format) of the server to send the request to.
port The port number to send the request to.
ipAddress A completed IPAddress object to send the request to.
endPoint A completed IPEndPoint object to send the request to.

Return Value

Returns a completed SNP31Response that contains the result of the request.

See Also