ovl.connections.connection module

class ovl.connections.connection.Connection[source]

Bases: object

close()[source]
receive(*args, **kwargs)[source]

Used to receive information from an external source, receive represents incoming information, usually over-network but not exclusively Receive can be used to send a request in order to receive for example HttpConnection send an http request and returns the response data

Parameters:
  • args – any additional arguments for the specific connection object
  • kwargs – any additional keyword arguments for the specific connection object
Returns:

receive_from_location(network_location: ovl.connections.network_location.NetworkLocation, *args, **kwargs)[source]

Used to receive information from an external source, receive represents incoming information, usually over-network but not exclusively

Receive can be used to send a request in order to receive for example HttpConnection send an http request and returns the response data

Receive_from_location uses a NetworkLocation to specify

Parameters:network_location – used to specify parameters of a specific “location”

or information about the receipt. :param args: any additional arguments for the specific connection object :param kwargs: any additional keyword arguments for the specific connection object :return:

send(data, *args, **kwargs)[source]

Used to send information to an external source, send represents outgoing information, usually over-network but not exclusively

Parameters:data – the data to be sent, a common use is sending the directions from direction objects after

object detection :param args: any additional arguments for the specific connection object :param kwargs: any additional keyword arguments for the specific connection object :return:

send_to_location(data, network_location: ovl.connections.network_location.NetworkLocation, *args, **kwargs)[source]