hans-3.0.2: Network Stack

Safe HaskellNone
LanguageHaskell2010

Hans.Nat

Synopsis

Documentation

forwardTcpPort Source #

Arguments

:: Network addr 
=> NetworkStack 
-> addr

Local address (can be wildcard)

-> TcpPort

Local port

-> addr

Remote address

-> TcpPort

Remote port

-> IO () 

Add a TCP port-forwarding rule.

removeTcpPortForward Source #

Arguments

:: Network addr 
=> NetworkStack 
-> addr

Local address (can be wildcard)

-> TcpPort

Local port

-> IO () 

Remove a TCP port-forwarding rule.

forwardUdpPort Source #

Arguments

:: Network addr 
=> NetworkStack 
-> addr

Local address (can be wildcard)

-> UdpPort

Local port

-> addr

Remote address

-> UdpPort

Remote port

-> IO () 

Add a UDP port-forwarding rule.

removeUdpPortForward Source #

Arguments

:: Network addr 
=> NetworkStack 
-> addr

Local address (can be wildcard)

-> UdpPort

Local port

-> IO () 

Remove a UDP port-forwarding rule.