waitForTraffic: Wait for traffic to stop

Description Usage Arguments Value See Also Examples

Description

Waits for the network to be quiet

Usage

1
waitForTraffic(proxy, quietPeriod = NULL, timeOut = NULL, ...)

Arguments

proxy

An object of class "proxy". A proxy object see proxy.

quietPeriod

number of milliseconds the network needs to be quiet for

timeOut

max number of milliseconds to wait

...

Additonal function arguments

Value

invisible(proxy): An object of class "proxy" is invisibly returned. A proxy object see proxy. This allows for chaining from this function to other functions that take such an object as an argument. See examples for further details.

See Also

Other session functions: closeProxy, emptyDNS, getPorts, openPort, setRetry, timeouts

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
  # A BMP server is assummed running on port 9090
  prxy <- proxy(bmpPort = 9090L, port = 39500L)
  # get ports with running proxies
  prxy %>% getPorts
  # set timeouts
  prxy %>% timeouts(requestTimeout = 50000L, readTimeout = 50000L,
                    connectionTimeout = 50000L)
  # close proxy and check ports
  prxy %>% 
    closeProxy %>% 
    getPorts

## End(Not run)

johndharrison/bmproxy documentation built on May 19, 2019, 5:13 p.m.