source: ReferenceDesigns/w3_802.11/python/wlan_exp/transport/transport.py

Last change on this file was 6320, checked in by chunter, 5 years ago

1.8.0 release wlan-exp

File size: 1.8 KB
Line 
1# -*- coding: utf-8 -*-
2"""
3------------------------------------------------------------------------------
4Mango 802.11 Reference Design Experiments Framework - Transport
5------------------------------------------------------------------------------
6License:   Copyright 2019 Mango Communications, Inc. All rights reserved.
7           Use and distribution subject to terms in LICENSE.txt
8------------------------------------------------------------------------------
9
10This module provides the base class for transports.
11
12Integer constants:
13    TRANSPORT_TYPE, TRANSPORT_HW_ADDR, TRANSPORT_IP_ADDR,
14    TRANSPORT_GROUP_ID, TRANSPORT_UNICAST_PORT, TRANSPORT_BROADCAST_PORT
15      -- Transport hardware parameter constants
16
17    TRANSPORT_NO_RESP, TRANSPORT_RESP, TRANSPORT_BUFFER
18      -- Transport response types
19
20If additional hardware parameters are needed for sub-classes of Node, please
21make sure that the values of these hardware parameters are not reused.
22"""
23
24
25__all__ = ['Transport']
26
27
28# Transport Parameter Identifiers
29#     - The C counterparts are found in *_transport.h
30TRANSPORT_TYPE                                   = 0
31TRANSPORT_HW_ADDR                                = 1
32TRANSPORT_IP_ADDR                                = 2
33TRANSPORT_GROUP_ID                               = 3
34TRANSPORT_UNICAST_PORT                           = 4
35TRANSPORT_BROADCAST_PORT                         = 5
36
37# Transport response types
38TRANSPORT_NO_RESP                                = 0
39TRANSPORT_RESP                                   = 1
40TRANSPORT_BUFFER                                 = 2
41
42# Transport Types
43TRANSPORT_TYPE_IP_UDP                            = 0
44
45
46class Transport(object):
47    """Base class for transports.
48
49    Attributes:
50        hdr -- Transport header object
51    """
52    hdr = None
53
54# End Class
55
56
57
58
Note: See TracBrowser for help on using the repository browser.