rodbus (.NET API) 1.6.0-RC1
Loading...
Searching...
No Matches
rodbus.AddressFilter Class Reference

Filter used to restrict which IP addresses may communicate with a server More...

Public Member Functions

 AddressFilter (string address)
 Create an address filter that matches one or more IP addresses. Ipv4 or IPv6 addresses are allowed. More...
 
void Add (string address)
 Add an allowed IP address to the filter More...
 

Static Public Member Functions

static AddressFilter Any ()
 Create an address filter that accepts any IP address More...
 

Detailed Description

Filter used to restrict which IP addresses may communicate with a server

Constructor & Destructor Documentation

◆ AddressFilter()

rodbus.AddressFilter.AddressFilter ( string  address)
inline

Create an address filter that matches one or more IP addresses. Ipv4 or IPv6 addresses are allowed.

Examples: 192.168.1.26, 192.168.0.*, *.*.*.*

Wildcards are only supported for IPv4 addresses

IPv4 addresses also match clients that connect with the IPv4-mapped IPv6 form (ffff:a.b.c.d), e.g. to a server bound to [::]

Parameters
addressIP address to accept
Exceptions
ParamException

Member Function Documentation

◆ Add()

void rodbus.AddressFilter.Add ( string  address)
inline

Add an allowed IP address to the filter

This function may only be called if the AddressFilter was initially constructed with a single static address

Parameters
addressIP address to add
Exceptions
ParamException

◆ Any()

static AddressFilter rodbus.AddressFilter.Any ( )
inlinestatic

Create an address filter that accepts any IP address

Returns
Address filter

The documentation for this class was generated from the following file: