<gh_stars>0
"""Get Async Request Message."""
# System imports

# Third-party imports

# Local imports
from pyof.foundation.base import GenericMessage
from pyof.v0x04.common.header import Header, Type

__all__ = ('GetAsyncRequest',)


class GetAsyncRequest(GenericMessage):
    """Request Asynchronous messages.

    Query the asynchronous messages that it wants to receive (other than error
    messages) on a given OpenFlow channel.
    """

    #: OpenFlow :class:`~.header.Header`
    header = Header(message_type=Type.OFPT_GET_ASYNC_REQUEST)

    def __init__(self, xid=None):
        """The constructor just assings parameters to object attributes.

        This message does not contain a body beyond the OpenFlow Header.

        Args:
            xid (int): xid to be used on the message header.
        """
        super().__init__(xid)

"""Get Async Request Message."""
# System imports

# Third-party imports

# Local imports
from pyof.foundation.base import GenericMessage
from pyof.v0x04.common.header import Header, Type

__all__ = ('GetAsyncRequest',)


class GetAsyncRequest(GenericMessage):
    """Request Asynchronous messages.

    Query the asynchronous messages that it wants to receive (other than error
    messages) on a given OpenFlow channel.
    """

    #: OpenFlow :class:`~.header.Header`
    header = Header(message_type=Type.OFPT_GET_ASYNC_REQUEST)

    def __init__(self, xid=None):
        """The constructor just assings parameters to object attributes.

        This message does not contain a body beyond the OpenFlow Header.

        Args:
            xid (int): xid to be used on the message header.
        """
        super().__init__(xid)
Get Async Request Message. # System imports # Third-party imports # Local imports Request Asynchronous messages.      Query the asynchronous messages that it wants to receive (other than error     messages) on a given OpenFlow channel. #: OpenFlow :class:`~.header.Header` The constructor just assings parameters to object attributes.          This message does not contain a body beyond the OpenFlow Header.          Args:             xid (int): xid to be used on the message header.