def socket(self, socket_type):
    if (socket_type == RAW_ACCESS_POINT):
        return RawAccessPoint(recv_miu=self.cfg['recv-miu'])
    if (socket_type == LOGICAL_DATA_LINK):
        return LogicalDataLink(recv_miu=self.cfg['recv-miu'])
    if (socket_type == DATA_LINK_CONNECTION):
        return DataLinkConnection(recv_miu=128, recv_win=1)
def socket(self, socket_type):
    if (socket_type == RAW_ACCESS_POINT):
        return RawAccessPoint(recv_miu=self.cfg['recv-miu'])
    if (socket_type == LOGICAL_DATA_LINK):
        return LogicalDataLink(recv_miu=self.cfg['recv-miu'])
    if (socket_type == DATA_LINK_CONNECTION):
        return DataLinkConnection(recv_miu=128, recv_win=1)