coapthon.forward_proxy package

Submodules

coapthon.forward_proxy.coap module

class coapthon.forward_proxy.coap.CoAP(server_address, multicast=False, starting_mid=None, cache=False, sock=None)[source]

Bases: object

Implementation of the Forward Proxy

close()[source]

Stop the server.

listen(timeout=10)[source]

Listen for incoming messages. Timeout is used to check if the server must be switched off.

Parameters:timeout – Socket Timeout in seconds
purge()[source]

Clean old transactions

receive_datagram(args)[source]

Handle messages coming from the udp socket.

Parameters:args – (data, client_address)
send_datagram(message)[source]

Send a message through the udp socket.

Parameters:message (Message) – the message to send

Module contents